![]() |
|
Cache full image enhancement - 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 full image enhancement (/thread-7937.html) |
Cache full image enhancement - bic - 2010-12-09 This option is already present in admin: options-image. Cache full image enhancement - acrylian - 2010-12-09 There is already an option for that on Options > Image > Full image protection. Cache full image enhancement - bic - 2010-12-09 Yes, I saw it. Maybe it wasn't clear but I tryed to explain that the existing option only works for "strict" full image cache, not if you want to cache sized images that don't need to be resized because they are already small enaugh. Cache full image enhancement - acrylian - 2010-12-09 If an full image does not need to be resized because of this it is used directly. Therefore use the full image cache option. (unless there is a bug) Cache full image enhancement - bic - 2010-12-09 It is used directly, anyway if the image is not in cache then the request is processed through i.php every time. Cache full image enhancement - acrylian - 2010-12-09 Uncached images are always processed by i.php to be actually cached. If you think it is a bug and the full image is never cached although you set the option please open a ticket with the exact description. Thanks. Cache full image enhancement - bic - 2010-12-09 You are true acrylian, I didn't notice it before because i have full image disabled in my theme, but actually that option doesn't work for full images either. They are never cached, not only if they don't need to be resized for standard image view! Cache full image enhancement - acrylian - 2010-12-09 Regarding the password recover, I am not sure right now. But if "bic" is your trac account name as well I could delete it. Cache full image enhancement - bic - 2010-12-09 Yes, it was bic. Case 1) Full images are smaller than sized images. Case 2) Full images are bigger than sized images. Cache full image enhancement - acrylian - 2010-12-09 Account on trac is removed. You can now re-register. My collegue who is the expert on the image processing stuff will surely soon respond as well. Cache full image enhancement - sbillard - 2010-12-09 Perhaps I do not understand the issue. The image is "cached" in its original location. The purpose of caching is to prevent unnecssary image processing. When the image is the correct size it need not be reprocessed. Cache full image enhancement - bic - 2010-12-09 It seems useless but imho that option is there for a good reason. I've made many tests and the performance when the image is forced in cache is much better after the first request, even if no processing is needed for the image. File: zp-core/i.php before line 201 added the line: ex line 201, now 202, changed to: Cache full image enhancement - sbillard - 2010-12-10 Well, the particular option you have used has nothing to do with i.php and everything to do with full-image.php. It is there to allow to cache or not the image if it has been watermarked. That is optional for quite good reasons--storage space vs. processing time trade-offs. Most visitors do not elect to view the full sized image, so the trade-off is reasonable. Hijacking this option for your us is a pretty bad idea. On the other hand, I agree that the performance, especially over time, favors just caching the image. There is really quite a bit of computation made to see if the caching can be bypassed. It would be unreasonable to place that test where the image URLs are generated since that would be a mulitplicative effect. Also, most images will be cached, so the test for a small percentage of cases just does not computer[sic]. With tonight's build all normal images will be cached. Cache full image enhancement - bic - 2010-12-10 Ok, now everything is clear. At the beginning of this topic my idea was that the force cache option was there only for real full images but I didn't get the connection with watermark. |