I have an application where I can upload user profile photos; the script works perfect, the problem is generated when I go to change the photo and update it for another continues appearing the previous one, even though the one that had already been deleted from the directory.
Note: After a while the photo that I have updated appears.