After the upgrade to 1.2.7 I've had the following errors filling up my error_log
`
[Mon Dec 14 14:40:10 2009] [error] [client xxx.xx.xx.xxx] PHP Warning: fclose(): supplied argument is not a valid stream resource in /home/public_html/gallery/zp-core/zp-extensions/static_html_cache.php on line 169
[Mon Dec 14 14:40:10 2009] [error] [client xxx.xx.xx.xxx] PHP Warning: fopen(cache_html/) [
function.fopen]: failed to open stream: Is a directory in /home/public_html/gallery/zp-core/zp-extensions/static_html_cache.php on line 167
[Mon Dec 14 14:40:08 2009] [error] [client xxx.xx.xx.xxx] PHP Warning: fclose(): supplied argument is not a valid stream resource in /home/public_html/gallery/zp-core/zp-extensions/static_html_cache.php on line 169
[Mon Dec 14 14:40:08 2009] [error] [client xxx.xx.xx.xxx] PHP Warning: fopen(cache_html/) [
function.fopen]: failed to open stream: Is a directory in /home/public_html/gallery/zp-core/zp-extensions/static_html_cache.php on line 167
`
I re-uploaded the static_html_cache.php file just in case, but it's still showing up. I've dumped the static_html cache to no effect either.
The referrer in those lines is either an image page or an album folder. Makes no diff there.
Comments
Looks good!
I am using ZenPhoto version 1.3 with ZpFocus 1.3. Also I have enabled the static_html cache. I understand that my pages, albums, images, etc are there after they are viewed, but am I suppose to clear these folders for updates to be "live" on the web. What is the purpose of this plugin?
Thank-you - Renee
And the cache is cleaned every 24 hours, so it catches up. If you need to add new images and have them available ASAFP, you can force-dump the cache, but that can be expensive to re-build.
So this plugin caches static html pages of those dynamically generated stuff so it is generated once. It even caches different language versions in case you use the multilingual feature.
We have also a similar caches for the rss feeds and the sitemap plugin.
Yes, if you update something you have either to clear the cache manually or wait until the cache time as expired when it updates automatically (see the plugin's options).
Btw, the current version is 1.3.1.1.
Seriously, though, my site would DIE were it not for static cache! 39471 Images, 624 Albums, and when I add new albums, it's usually 60-100 photos, all of which get hit for traffic within an hour of posting. The static saves my bacon!