![]() |
|
"Clear album image 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: "Clear album image cache" (/thread-12298.html) |
"Clear album image cache" - wibbi - 2018-03-15 When using the plugin cacheManager, clicking on the button "Clear album image cache" in an album will only "_40_cw40_ch40_thumb.jpg", "_200_thumb.jpg" (thumbnails) and "_600.jpg" (resize) images from the cache deleted, but not the "_80_cw80_ch80_thumb.jpg" images. "Clear album image cache" - acrylian - 2018-03-15 That actually clears the whole album cache and makes no difference between sizes. Any errors? If you or anyone else visited the album before you looked at the cache again the image could have been just recreated. "Clear album image cache" - wibbi - 2018-03-15 I'm the only one and I'm not leaving the site after clicking on the button "Clear album image cache". The debug.log: 99 Warnings after clicking on the button "Clear album image cache". [code] WARNING: Cannot modify header information - headers already sent by (output started at /var/www/virtual/user/html/zp-core/admin-functions.php:4172) in /var/www/virtual/user/html/zp-core/i.php on line 194 "Clear album image cache" - acrylian - 2018-03-15 Perhaps related to your custom changes. Please try the original code to sort that out. "Clear album image cache" - wibbi - 2018-03-15 I have now replaced all files with core hacks with untouched originals and still they are not deleted the "_80_cw80_ch80_thumb.jpg", all others already. I even deleted all images manually, then they were recreated. But the "_80_cw80_ch80_thumb.jpg" were not deleted again. "Clear album image cache" - vincent3569 - 2018-03-15 I think (but not sure) that these cache images are recreated when admin page is reloaded. to be sure: when you are on page album, and before delete cache images for this album, manually delete some "_80_cw80_ch80_thumb.jpg" and other "_80_cw80_ch80_thumb.jpg" with "_80_cw80_ch80_thumb.old.jpg" (it avoid to rename all :-) ) "Clear album image cache" - acrylian - 2018-03-15 What Vincent says ;-) "Clear album image cache" - wibbi - 2018-03-15 Muahaha, yes! Thats right. Thanks vincent! Question: I don't understand why is [code] static function clearCache($cachefolder = NULL) { "Clear album image cache" - acrylian - 2018-03-15 Its a general function for all caches. We have several, so it is for the actual folder to clear. There are two cache types as noted on the user guide
"Clear album image cache" - wibbi - 2018-03-15 The function as function, yes. I mean the [code] "Clear album image cache" - acrylian - 2018-03-15
"Clear album image cache" - wibbi - 2018-03-15
"Clear album image cache" - acrylian - 2018-03-15 If not set specifially use the main default cache makes a lot sense to me… |