![]() |
|
Static HTML Cache - Delete Selected Files? - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Static HTML Cache - Delete Selected Files? (/thread-6983.html) |
Static HTML Cache - Delete Selected Files? - Ipstenu - 2010-04-30 About once a week I upload a couple hundred images. The rest of the time, my site is really static. This plugin is perfect for that, since I can keep my CPU usage low The night I upload those images, though, they need to be available right then and there, and show up in their parent folder etc. Right now, I have two options to clear my cache: Delete the WHOLE cache, or login as root and kill just the appropriate files. The reason I have to login as root, is that the folders and files get created as owned by nobody, which means my user ID can't clean them without shenanigans. Is there a way to have the account IDs the owners, so that I can just kill them with MY id, or ... some way to more selectively kill the files? Static HTML Cache - Delete Selected Files? - acrylian - 2010-04-30 No, except you delete them manually via ftp. Generally the cache does delete outdated file itself and updates according to the limit set on the option. Static HTML Cache - Delete Selected Files? - Ipstenu - 2010-04-30 Can't delete via FTP any more than I can logged into shell. Probably for this reason: Quote:[...] the folders and files get created as owned by nobody, which means my user ID can't clean them without shenanigans. Static HTML Cache - Delete Selected Files? - sbillard - 2010-05-01 This is a configuration error for your server. These files are created by Zenphoto, so should belong to the "owner" for the running scripts. They should be no different from the cached images, can you delete those through FTP? Static HTML Cache - Delete Selected Files? - Ipstenu - 2010-05-02 Nope. Looks like they're owned by nobody as well. I'm going to go look into PHP and see why it's being stupid. Static HTML Cache - Delete Selected Files? - Ipstenu - 2010-05-05 Yeah, it'd my host. And since fiddling with PHP screwed up other things, I scripted a cleanup script in PHP that fixes permissions. Since it runs as nobody it has access to ... nobody's files. I feel like Polyphemus. Static HTML Cache - Delete Selected Files? - sbillard - 2010-05-05 So, then I guess nobody is really somebody |