![]() |
|
cache 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: cache files (/thread-2834.html) |
cache files - macalter - 2008-05-08 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? cache files - acrylian - 2008-05-08 The 200.jpg is the cached thumbnail and 595.jpg is the cached size image. Both have nothing to do with sorting. cache files - macalter - 2008-05-08 Other that time it takes to re-cache, can it be emptied to "start fresh". Then I'll know for sure where they're coming frm. I know the _595.jpg were very old ones, not questioning them. It's the 200 I have question. ALL my albums are "Image size - 450"; Thumb size - 100; so where does the value come from? (My Gallery images are from Default Theme separate from Default Theme Albums and settings are different as one only sees the one image selected to represent each album.) The sorting code shows the images coming from /cache/.... so thought that's why size was that. cache files - vraa - 2008-05-09 I think it's fine to delete all the files in the /cache Does Zenphoto already assign expiry dates to the cache? cache files - acrylian - 2008-05-09 No, it doesn't. Generally, if you don'T change your images/sizes, there is bascially no need to cache them again. cache files - jlang - 2008-05-09 I periodically run the following command to find inactive cache files. I could run the output through to rm with a cron job but I've never bothered setting it up. find zenphoto/cache -type f -atime +90 -size +20 -print Notes:
cache files - macalter - 2008-05-10
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. cache files - acrylian - 2008-05-10 The example jlang gave is not Zenphoto code, that is a direct server command (Perl I would assume) that as nothing to do with it. 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. cache files - jlang - 2008-05-12 Sorry if there was confusion - the find command above is not not zenphoto, perl or php code - just the unix find command. I run it on the shell command line. No idea how you'd run it in a Dreamhost or control panel type scenario, but a web search brings up examples of php cache-cleaning functions using fileatime(). cache files - acrylian - 2008-05-12 Ah, right, well, I am Mac user by nature(...:-)), so I try to avoid the shell if possible...:-) cache files - macalter - 2008-05-12 Ah the wrist-slap helped Build 1525 jump menu doesn't have the blank line (changed style from list). So far..... so good. 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. cache files - acrylian - 2008-05-12 [i]page of the GALLERY the album is on and not to the album itself[/i] cache files - macalter - 2008-05-12 When the choice from the drop down is selected on the Gallery pages, the viewer is taken to the thumbnail page (Album.php) of that album instead of the respective Gallery page (index.php) it is on (I have 1 gallery per page). cache files - acrylian - 2008-05-12 That is exactly why and how the album menu was made: to jump directly into an album. cache files - macalter - 2008-05-13 Oh, was hoping it would be more of a "table of contents" for what albums are in the Gallery. Saves having to click every page to see the title and blurb. And, kind of defeats the purpose of the Gallery index pages, I think. Thought it was similar to the pagelist navigation only it tells you where you're going instead of generic "page 1, page 2..." I didn't put ZP into a subdirectory and can't move until that feature is completed so, it'll do for now |