static_html_cache questions

My host just told me that I need to use some sort of caching system for my zenphoto because it's so enormous and it's eating up server resources. I'd like to use static_html_cache but I have a few questions about how it works.

1. How often does the cache refresh? My gallery gets updated several times a day, will the changes show up?

2. Will all thumbnails and cached images go into the /cache folder AND the /cache_html folder? Will this be using up twice the amount of disk space?

3. If I want to direct link to a thumbnail (I post the thumbnails on my blog), what is the correct URL for that? For example, I currently use www.mysite.com/photos/cache/albumname/imagename.jpg_100_cw85_ch85_thumb.jpg - will that need to change?

4. How is this different from what ZenPhoto does already? What are the benefits to using this plugin rather than just letting ZP do the regular caching?

Thanks for your help! :)

Comments

  • acrylian Administrator, Developer
    1. There is an option for the timeout in the plugin's options

    2. No, images are cached in the `cache` folder and the pure html files in the `cache-html` folder. No doubled space.

    3. This file name will change if you clear the cache and alter settings. The best way to link to a image directly is by using the image functions. If you need to link from outside Zenphoto take a look at our extensions section on the site for several solutions.

    4. The html cache caches the site creation itself so that all necessary script processing of php and mysql calls is not executed everytime, Zenphoto' cache handles only the caching for images.
  • Thanks for your help! I really appreciate it. :D
Sign In or Register to comment.