Member
Member
Vector_ray   2008-10-03, 17:20
#1

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?

Member
Member
Vector_ray   2008-10-03, 17:21
#2

Here is the url http://rayestrada.com/brain/art/

Administrator
Administrator
acrylian   2008-10-03, 17:40
#3

Well, the error tells it. The plugin is not allowed to create a folder. Just make the folders manually or maybe ask your ISP.

Member
Member
Vector_ray   2008-10-03, 18:23
#4

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?

Administrator
Administrator
acrylian   2008-10-03, 18:24
#5

I would think so.

Member
Member
Vector_ray   2008-10-04, 04:36
#6

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?

Administrator
Administrator
acrylian   2008-10-04, 09:14
#7

Sure, you cached the pages when you were logged in. Just clear the cache and let it redo the caching.

Member
Member
southdreamz   2008-10-07, 04:28
#8

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?

Administrator
Administrator
acrylian   2008-10-07, 08:46
#9

Turn off the static cache. The cache caches the whole page that includes of course everything on that. Sorry, currently there is no way. The cache is a very new feature.

Member
Member
southdreamz   2008-10-16, 05:31
#10

Hello,

I have enabled the static_html_cache plug-in, it is working fine, but the search page is not working(blank page).

Administrator
Administrator
acrylian   2008-10-16, 08:52
#11

Does that also occur if the cache is disabled?

Member
Member
southdreamz   2008-10-17, 05:48
#12

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.

Administrator
Administrator
acrylian   2008-10-17, 09:09
#13

Actually the cache should exclude the search page. I will take a look at it.

Member
Member
flu   2008-11-24, 17:02
#14

Hi.
In the admin panel I really would like to be able to exclude some pages chosen by myself too, like a random page for example.

Does it make sense to you ?

Administrator
Administrator
acrylian   2008-11-24, 17:52
#15

You can open a ticket for that.

Member
Member
sbillard   2008-11-24, 19:11
#16

Please understand the limitations. We can tell what script is being loaded but not what the content of the script might be. So we could have an exclude list that excludes arbitrary scripts, but all instances of that script would be excluded.

Member
Member
flu   2008-11-25, 16:52
#17

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.

Administrator
Administrator
acrylian   2008-11-25, 17:12
#18

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.

Member
Member
flu   2008-11-25, 17:30
#19

I'll try.
Thank you so much !

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