Static HTML Cache - Delete Selected Files?

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?

Comments

  • acrylian Administrator, Developer
    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.
  • Can't delete via FTP any more than I can logged into shell. Probably for this reason:
    [...] the folders and files get created as owned by nobody, which means my user ID can't clean them without shenanigans.
    So is there a way to get the files created and owned as ipstenu:ipstenu and not nobody:nobody?
  • 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?
  • Ipstenu Member
    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.
  • Ipstenu Member
    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.
  • So, then I guess nobody is really somebody:)
Sign In or Register to comment.