![]() |
|
how to refresh cache image for pictures used in news/pages ?? - 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: how to refresh cache image for pictures used in news/pages ?? (/thread-11406.html) |
how to refresh cache image for pictures used in news/pages ?? - vincent3569 - 2013-10-08 hi in some news, I use pictures from my gallery (some of my public albums, some of my private albums to illustrate the news/pages, some pictures used as thumbnail, some pictures used as resized pictures to suit my needs, but in most case, with a different size from gallery). sometimes, I delete my cache image to refresh it. in that case, with new releases of zenphoto, cache of pictures in the news are not regenerated and pictures are not displayed ! for example, before, in my news I have a link to picture like If I delete my cache (intentionally or by mistake), how can I refreh it for all picture, both in my gallery and news/pages ? how to refresh cache image for pictures used in news/pages ?? - acrylian - 2013-10-08 Yes, that is because otherwise a lot of overhead would occur if i.php is called each time. Believe it or not even I was confused by that recently and somehow missed that sbillard had added this. Update: I have added info about that to the related user guide article: how to refresh cache image for pictures used in news/pages ?? - vincent3569 - 2013-10-08 Thanks Malte for your answer. I am not sure to understand: all pictures on news/pages don't have the same size/format. There is no solution to use i.php rather than cache url? how to refresh cache image for pictures used in news/pages ?? - sbillard - 2013-10-08 Quote:with the gallery, if cache image doesn't exit, cache image is automatically refreshed. The cache manager goes an looks for such links and re-caches when you select that option. So really, the best thing for you do do is to run that function when you delete your cache either deliberately or accidentally. how to refresh cache image for pictures used in news/pages ?? - vincent3569 - 2013-10-10 Sometimes, I use custom thumbnail cropping. how to refresh cache image for pictures used in news/pages ?? - acrylian - 2013-10-10 Yes, if you look at the cached image filenames you will see they always mirror the options set to create them. Otherwise we could not check if one is cached already or not. So it should genereate the news/page embedded ones correctly. how to refresh cache image for pictures used in news/pages ?? - vincent3569 - 2013-10-10 I ash my question more specifically: how to refresh cache image for pictures used in news/pages ?? - sbillard - 2013-10-10 If I understand correctly you are asking if your cachemanager parameters will cache a custom cropped image. Of course not unless the custom crop is the same as the parameters you have set. Cachemanager makes cached images based on the settings you tell it to use. how to refresh cache image for pictures used in news/pages ?? - vincent3569 - 2013-10-10 I did not ask my question properly. Is there a way go generate all thumbails with only one instruction of cacheManager, both those with a standard cropping (cw=85, cy=85) and those have cropping data are stored in database? In others word, cacheManager are using cropping data stored in database, or apply only settings? how to refresh cache image for pictures used in news/pages ?? - acrylian - 2013-10-10 It only caches what is registered to it. So no, it does not look through the images table. how to refresh cache image for pictures used in news/pages ?? - vincent3569 - 2013-10-10 so, this plugin cacheManager is convenient, but still a bit limited... I think it should work as follows:
how to refresh cache image for pictures used in news/pages ?? - sbillard - 2013-10-11 Quote: For each theme, explore the database to discover the size of the thumbnails (thumb_size, thumb_crop, thumb_crop_width, thumb_crop_height) and image size (image_size, image_use_side) and generate the cache thumbs and pictures. This is done. how to refresh cache image for pictures used in news/pages ?? - vincent3569 - 2013-10-11 thanks sbillard how to refresh cache image for pictures used in news/pages ?? - acrylian - 2013-10-11 Both, it is already in the master/dev builds. You can always review changes here: how to refresh cache image for pictures used in news/pages ?? - vincent3569 - 2013-10-12 Hi I have some tests with new improvement. I have a picture with followind data : with official 1.4.5.5 with current support build of 1.4.5.5 how to refresh cache image for pictures used in news/pages ?? - sbillard - 2013-10-12 Some more details please: Is this using the cache manager? how to refresh cache image for pictures used in news/pages ?? - vincent3569 - 2013-10-13 I don't use cacheManager how to refresh cache image for pictures used in news/pages ?? - vincent3569 - 2013-10-13 forgive my previous message, I uploaded latest support build and I don't have the issue anymore... how to refresh cache image for pictures used in news/pages ?? - vincent3569 - 2013-10-13 your improvement works great, thanks. I suggest you to add some explanations in http://www.zenphoto.org/news/cachemanager and Maybe, something like that : With cacheManager, you can easily cache the thumbnails of your gallery (both with a standard size and with custom cropping). if not existing, you have to create a new type of cache (for example, with size = 85, cropping width = 85, cropping hight = 85, thumbnail = true)
|