ZenphotoCMS Forum
Clean the Cache - 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: Clean the Cache (/thread-1484.html)



Clean the Cache - zp - 14-06-2007

Is there a way to clean the cache when, for example, a directory has been deleted?




Clean the Cache - thinkdreams - 14-06-2007

The admin interface, has, on its front page a refresh database link (or what is known as garbage collection) which should accomplish what you are seeking. you can also manually delete the cached files in the cache directory to accomplish this same task using an FTP client




Clean the Cache - ant800 - 06-08-2007

My admin page still counts the comments made on photos of already deleted directories. How can I reset that?




Clean the Cache - trisweb - 07-08-2007

It's true, that's a bug - the comments are not deleted when albums are. Submit it to Trac and we'll take care of it.. someday...




Clean the Cache - jordi-kun - 23-10-2007

I have several albums from early stages of zenphoto which have no date set (zp_albums.date). Right now, all new albums get their date from the exif of the first image. Is there any way to update these nulls automatically?

I was thinking of using the garbageCollect function in gallery class but still haven't figured out how to.

thanks!




Clean the Cache - sbillard - 23-10-2007

jordi-kun:

The best way is to drop the mtime fields from the albums and images tables, then run upgrade. This will make all images look "new".

ant800:

You should do a database refresh. This should delete all orphaned comments.

zp:

Simplest way to clean the cache is to use FTP to delete all the items in it. Alternatively, running upgrade.php will clean the cache.