I've uploaded the recent update of zenphoto and includes the new plugin static_html_cache. I've tried to add the plugin but it's giving me an error code and I'm not sure what I need to do. This is the error:
Quote:Warning: mkdir(/home/izabel07/rayestrada-www/brain/art/cache_html/) [function.mkdir]: Permission denied in /home/izabel07/rayestrada-www/brain/art/zp-core/plugins/static_html_cache.php on line 27
Static HTML Cache folder could not be created. Please try to create it manually via FTP with chmod 0777.
Any ideas?
Here is the url http://rayestrada.com/brain/art/
I've added the folders manually. Still getting an error message:
Quote:Warning: fopen(cache_html/index/index_1_en_US.html) [function.fopen]: failed to open stream: Permission denied in /home/izabel07/rayestrada-www/brain/art/zp-core/plugins/static_html_cache.php on line 110
Warning: fputs(): supplied argument is not a valid stream resource in /home/izabel07/rayestrada-www/brain/art/zp-core/plugins/static_html_cache.php on line 111
Warning: fclose(): supplied argument is not a valid stream resource in /home/izabel07/rayestrada-www/brain/art/zp-core/plugins/static_html_cache.php on line 112
Is this a permissions issue?
I fixed the permissions issue, however now when I have the plugin active the [b]admin toolbox[/b] and [b]add tags[/b] functions are still visible on my site when I am not logged in. I've checked on other computers to verify it wasn't a cache issue.
Any thoughts on this?
I have installed zenphoto 1.2.1, in my local system and enabled static_html_cache plugin, after enabling this plugin, hit counter is not working, please let me know, how to enable hit counter?
Hello,
I have enabled the static_html_cache plug-in, it is working fine, but the search page is not working(blank page).
Hello acrylian,
thanks for your quick reply.
I have disabled the "static_html_cache" in my live site, then search is working fine.
In my local system, i'm getting the below issue in search page.
Warning: fopen(cache_html/) [function.fopen]: failed to open stream: No such file or directory in D:\wamp\www\zenphoto\zp-core\plugins\static_html_cache.php on line 110
Warning: fputs(): supplied argument is not a valid stream resource in D:\wamp\www\zenphoto\zp-core\plugins\static_html_cache.php on line 111
Warning: fclose(): supplied argument is not a valid stream resource in D:\wamp\www\zenphoto\zp-core\plugins\static_html_cache.php on line 112
thanks.
Sure, as I'm not a php coder, I don't exactly realize that it means and needs.
I just thought that if you can exclude the search page from the cache, the same thing could be done for other pages defined by the admin, but this is probably more complicated than I think.
In fact, I tried this plugin which is brilliant and I found it really speeds up the gallery.
Unfortunately, I use an image random script on my index page and activating the plugin makes it always the same so I can't use it out of the box.
I'd like to understand how does it work.
Are the cached pages regularly updated ? How often ?
Thank you for your time.
What sbillard actually meant is that we are not able to exclude parts of a page (=script). Either the whole page is cached or not. You can of course modify the plugin to exclude your index.php. The check for index.php is in line 154-157. Commenting that out would probably help.
You can set the cache timeout on the cache's plugin options. Default is one day.