Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Delete a file

Help
rubenxela
2010-06-18
2013-04-10
  • rubenxela
    rubenxela
    2010-06-18

    Hello, I use quickcache which is very usefull for me.
    To separate a delete easily some cached content I use many folders like category/ and articles/
    When I want to update my categoy files I simply use a php function like

    $dossier="../cache/category";
    $ouverture=opendir($dossier);
    $fichier=readdir($ouverture);
    $fichier=readdir($ouverture);
    while ($fichier=readdir($ouverture)) {
    unlink("$dossier/$fichier");
    }
    closedir($ouverture);
    

    Know what I want is to delete individualy some files from articles/ folder. I can do it in php but my problem is that I don't know how to find the cached page related to my url, because everything is encoded.
    What I need is to be able to get this indication for every article pages (with a  php function of course)

    Best regards and thank you for the very important work you done.