Member
Member
Ipstenu   2009-12-14, 21:58
#1

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.

Member
Member
sbillard   2009-12-14, 22:09
#2

You probably have a permissions issue with the static cache folder. You should turn off the static cache plugin and look at the permissions of that folder.

Member
Member
Ipstenu   2009-12-14, 22:20
#3

Permissions are 777 and it's owned by me.

Member
Member
sbillard   2009-12-14, 22:30
#4

Ok, there seems a problem in the plugin. There will be a fix in tonight's build.

Member
Member
Ipstenu   2009-12-14, 22:32
#5

Yay (Yet another reason why I suggest ZenPhoto to my friends - Stellar support)

Member
Member
Ipstenu   2009-12-15, 17:02
#6

Updated this morning an hour ago, no errors since.

Looks good!

Member
Member
reneesanguinetti   2010-09-02, 17:42
#7

Hello,

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

Member
Member
Ipstenu   2010-09-02, 18:19
#8

It makes your site faster and can put less strain on your server.

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.

Administrator
Administrator
acrylian   2010-09-02, 18:23
#9

As you surely know Zenphoto generates the display dynamically via PHP using MySQl and file system. This can add up a lot of server power if you have a lot of visitors as it is done for each of them, even if they view exactly the same.

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.

Administrator
Administrator
acrylian   2010-09-02, 18:29
#10

@Ipstenu: You were faster and shorter..;-)

Member
Member
Ipstenu   2010-09-02, 22:15
#11

There's a 'that's what she said' joke in there.

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!

Administrator
Administrator
acrylian   2010-09-03, 08:54
#12

As always glad to hear that what we make up works...;-)

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.