ZenphotoCMS Forum
Static HTML Cache plugin - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Static HTML Cache plugin (/thread-10112.html)

Pages: 1 2 3 4 5


Static HTML Cache plugin - sbillard - 05-07-2012

Yes the fix should not matter what the thumbnail is.

Did you install from the trunk nightly build? The dev build would not necessarily have the fix. Right now we are pretty lax in trying to keep the dev build up to date as all attention is on the trunk/release 1.4.3 builds.

So maybe install again from last night's trunk build to be sure the fix is present. If it still does not work report again what i.php script calls are present.

Also, maybe clear the image cache. Be sure that you reload the page at least once before checking.




Static HTML Cache plugin - qb84 - 05-07-2012

I always clear the browser and static html cache before I test.

Right now I just installed trunk build: 10413.

Sample of CR2 Thumbnail code.

[img]/gallery/zp-core/i.php?a=JohnSmith/cr2&i=_%7Bplugins%7D_%7Bclass-AnyFile%7D_cr2Default.png&w=420&h=200&c=1&cw=420&ch=200&q=75&t=1&wmk=![/img]




Static HTML Cache plugin - qb84 - 05-07-2012

ok.. I think I found the issue. I'm using the ZPSkeleton Theme. I tried the default theme and the image is cached. So my guess is that the [b]printCustomAlbumThumbImage[/b] function is not caching anyFile thumbnails.




Static HTML Cache plugin - sbillard - 05-07-2012

Yes, that is it. Have to figure out how to fix it, though.




Static HTML Cache plugin - sbillard - 06-07-2012

Fix in tonight's nighly (trunk)




Static HTML Cache plugin - qb84 - 09-07-2012

awesome! Now it works! Thanks for all the help




Static HTML Cache plugin - mironb - 03-01-2016

Hi
I just installed the 1.4.11 version of zenphoto and zpbase theme on my old zenphoto. Everything is working except staticHTML cache I have over 3000 images in my gallery so I need it. This plugin is enabled and I have no idea what can I do more. Directory of chache_html/albums is empty




Static HTML Cache plugin - mironb - 03-01-2016

Ok I noticed that same albums are cached and same not Can I controll that ?




Static HTML Cache plugin - acrylian - 03-01-2016

Note that if you are loggedin no cache files are generated or served. This is only for normal visitors. It might take some time until all cached pages are generated as this happens on the fly when a page is visited only.

Also this is not a cache for images (the image cache is always on), it is for the pages to limit server side processing. See the entry on the user guide about caching.

Otherwise youn need to look at your Zenphoto and server logs.




Static HTML Cache plugin - mironb - 03-01-2016

Is that something important: ` {14020:Sun, 03 Jan 2016 07:59:05 GMT} Zenphoto v1.4.11[26c78176cfb8d752e9e7bda4e65d69fc84b714a3]

NOTICE: Undefined offset: 1 in /home/klient.dhosting.pl/mironb/fotostacja.pl/public_html/galeria/zp-core/zp-extensions/static_html_cache.php on line 131

static_html_cache->checkIfAllowedPage called from static_html_cache->startHTMLCache (static_html_cache.php [146])

from include (index.php [71])

from index.php [28]

{14057:Sun, 03 Jan 2016 08:08:38 GMT}

NOTICE: Undefined offset: 1 in /home/klient.dhosting.pl/mironb/fotostacja.pl/public_html/galeria/zp-core/zp-extensions/static_html_cache.php on line 131

static_html_cache->checkIfAllowedPage called from static_html_cache->startHTMLCache (static_html_cache.php [146])

from include (index.php [71])

from index.php [28]

{14057:Sun, 03 Jan 2016 08:49:11 GMT}

NOTICE: Undefined offset: 1 in /home/klient.dhosting.pl/mironb/fotostacja.pl/public_html/galeria/zp-core/zp-extensions/static_html_cache.php on line 131

static_html_cache->checkIfAllowedPage called from static_html_cache->startHTMLCache (static_html_cache.php [146])

from include (index.php [71])

from index.php [28]

{14020:Sun, 03 Jan 2016 09:10:44 GMT}

NOTICE: Undefined offset: 1 in /home/klient.dhosting.pl/mironb/fotostacja.pl/public_html/galeria/zp-core/zp-extensions/static_html_cache.php on line 131

static_html_cache->checkIfAllowedPage called from static_html_cache->startHTMLCache (static_html_cache.php [146])

from include (index.php [71])

from index.php [28]

{14057:Sun, 03 Jan 2016 09:10:50 GMT}

NOTICE: Undefined offset: 1 in /home/klient.dhosting.pl/mironb/fotostacja.pl/public_html/galeria/zp-core/zp-extensions/static_html_cache.php on line 131

static_html_cache->checkIfAllowedPage called from static_html_cache->startHTMLCache (static_html_cache.php [146])

from include (index.php [71])

from index.php [28]

{14020:Sun, 03 Jan 2016 09:10:53 GMT}

NOTICE: Undefined offset: 1 in /home/klient.dhosting.pl/mironb/fotostacja.pl/public_html/galeria/zp-core/zp-extensions/static_html_cache.php on line 131

static_html_cache->checkIfAllowedPage called from static_html_cache->startHTMLCache (static_html_cache.php [146])

from include (index.php [71])

from index.php [28] `




Static HTML Cache plugin - acrylian - 03-01-2016

Do you have any pages to be excluded? There should be the defaults search.php/,contact.php/,register.php/,favorites.php/. Or is that option empty maybe?




Static HTML Cache plugin - mironb - 03-01-2016

search.php/,credit.php,contact.php/,news.php,
And time: 86400




Static HTML Cache plugin - mironb - 03-01-2016

I checked on totally different hosting and I have the same problem I made totally new installation




Static HTML Cache plugin - acrylian - 03-01-2016

search.php/,credit.php,contact.php/,news.php, there are missing trailing slashes behind credit.php and news.phpwhich would explain the notices you posted.

Also you only get html cached pages if all images are already cached. On album pages especially if you have random album thumbs enabled that might take a while. Remember image caching also happens on the fly unless you have setup the them for pre-caching and did so.




Static HTML Cache plugin - mironb - 03-01-2016

so it should be: search.php/,credit.php/,contact.php/,news.php/,




Static HTML Cache plugin - mironb - 03-01-2016

no changes with such set




Static HTML Cache plugin - mironb - 03-01-2016

Ok I disabled all plug-ins except static_html_cache and it started to work.... Now I have to find whichplugin is resposible for stooping the static_html_cache....




Static HTML Cache plugin - acrylian - 03-01-2016

Quote:Now I have to find whichplugin is resposible for stooping the static_html_cache....
That would be interesting. Uncached images are the only thing that should do that besides the excluded pages option.




Static HTML Cache plugin - mironb - 03-01-2016

Ok that's not so easy. If I want to start static_HTML_cache I have to disable all plugins and change zpbase theme settings to default Maybe that's a problem with small memory of server ??




Static HTML Cache plugin - mironb - 03-01-2016

Or the this script is to heavy for hosting