Not quite sure where this goes... or that it's 'fixable'
When I cleaned out the cache folder for one of my Albums (all the photos that were causing order problems), I saw two versions of each image in cache.
One was .jpg_200.jpg and .jpg_595.jpg. What I wanted to know is, other than taking up space, does having the two sizes cause problems or, when changing settings, should there be way to erase the old?
What creates the sizing of the cache image? The 595 was the image size setting I used originally but never 200. This also maybe why the sort image size is so large?
Comments
That you have 200 sizes you never use cannot be, maybe you tried another theme or played with the size options, so they where some left over.
The sorting code shows the images coming from /cache/.... so thought that's why size was that.
I have setup a cron job to do it once a month.
Does Zenphoto already assign expiry dates to the cache?
find zenphoto/cache -type f -atime +90 -size +20 -print
Notes:
1. I don't want to clear the thumbnails from the cache (assuming 20kB is larger than a thumbnail). They're small and recreating the thumbnails makes the browsing experience slow.
2. 90 days since last access sounds reasonable - my galleries are generally event related (holidays/weddings/etc) and get hit when published but very rarely after that.
3. I set up my gallery to load the next 2 images after the current one (hidden on the page) when browsing the image pages. This means that the caching (local to the browser and remote at my server) is usually done before the relevant image page gets requested - not quite galleria/tricasa smooth/fast but works quite well all the same.
Without getting too far off topic, is the "find zenphoto/cache" part of the code? Where zenphoto would be my directory?
: `find zenphoto/cache -type f -atime +90 -size +20 -print`
Dreamhost creates a GUI interface so would copy this into the command to run box, set to ??? (how often), use locking, email output to me.
Maybe this will address my "problem" and help determine if it is a problem.
Regarding the 200 images, they can come from a slideshow test for example. If you set another size than the gallery image size, it generates cached images, too.
I'm going to venture one step further on the Album Menu.... if I wanted the URL to go to the page of the GALLERY the album is on and not to the album itself, what triggers this. I don't see what calls the URL to use.
Sorry, I don't get that, the page where the album is is the album itself....
I didn't put ZP into a subdirectory and can't move until that feature is completed so, it'll do for now <SMILE>