Static cache not working

Author Message

luis muñoz

Wednesday 08 June 2005 11:30:11 am

I configured static cache and generated static cache, correctly stored, and rewrite engine working perfectly.
After that i removed the content of static folder manually with the intention of generate it again with new content but no changes to any ini file or rewrite configuration. After that the command line script wich generates the cache never created a file again, the content of the static folder is alwais empty.
We found that replacing the whole settings folder it works again, but only once.
When we delete the static cache there is no way to create it again.
Fixed the two bugs in makestaticcache script and cache.php file.
The rest of the site is working perfectly.
We have multiple siteaccess with the static cache configuration in the siteaccess.
Thank in advance

Geraint Edwards

Wednesday 29 June 2005 1:56:40 am

I see exactly the same behaviour i.e. "static" directory structure not recreated after it is removed manually - are there some SQL entries that need to be "flushed" to allow the cache to tbe recreated?

I have made the fixes to makestaticcache.php and cache.php and tried to recreate the cache using makestaticcache (with and without -f) and the admin interface to no avail.

Geraint

<b>SUBSEQUENT EDIT OF THIS POST</b>
I have now found my problem - in staticcache.ini he hostname is not actually the hostname but the value such that "http://$hostname$dir$url" makes a sensible ezalias request (NB $dir=siteaccess name and $url is the CachedURLArray entry). A little clarification in the staticcache.ini file may be helpful.

Georg Franz

Wednesday 29 June 2005 8:45:43 am

Hi Luis,

I had the same problems.

One issue was the hostname as Geraint described.

(If you forget to change the hostname entry in the staticcache.ini.append you will get an heartattack after running the the makestaticcache.php on the server ... You will see HTML-pages with "Host not found and can bought on sedo.de" content ... :)

Vice versa its the same problem. If you don't change the hostname on your local machine, you won't see any changes you made at your developer machine because ez is getting the page from the host which is defined in the ini-file ...

Another problem could be: Do you use 1 staticcache.ini.append in your override directory - or one by siteaccess? Maybe one staticcache.ini.append has different settings?

Best wishes,
Georg.

--
http://www.schicksal.com Horoskop website which uses eZ Publish since 2004

luis muñoz

Thursday 30 June 2005 5:27:19 am

Thanks for your answer. The host name was the problem, it's now fixed. Now i have another problem with the static cache, one of that wich produces heartattacks.
I was testing static cache in one part of the site and only for a few languages. It worked fine. The problem now is that certain parts of the site, like the homepage, sometimes are not cached right or get corrupted.
Sometimes i see only tables and no content, cometimes i lost navigation... and only for the pages where i'm using static cache.
And the worst of all is that after deleting static cache the problem is still there, looks like tpl-blocks where corrupted.
I'm sure it's static cache causing the problem, i disabled it this morning and the problem has gone and it never happened before.
I have all the static cache configuration in the siteaccess, only cached siteaccess is in settings/override.
Any idea?
Thanks

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.