Forums / Install & configuration / configuration problems with staticcache

configuration problems with staticcache

Author Message

Stephen Schwenker

Wednesday 11 October 2006 7:24:44 am

Hey,

I'm have this wierd problem with my web site and generating static cache.

My site name is called reviews.
In my site content, I also have a folder in the root folder called reviews with subfolders under it.

Lets say I have a folder called auto under the reviews folder. If I got to http://domain.com/reviews/auto then I get an error that say Module not found. I have to use
http://domain.com/reviews/reviews/auto to get to it.

However when I create a directory called test in the root folder and then go to http://domain.com/test then it works. http://domain.com/reviews/test also takes me to the same page.

I have added CachedURLArray[]=/reviews* to the staticcache.ini so the cache will build the cache for all the content under reviews. The problem is that when the cache routines build the urls, it build it like http://domain.com/reviews/auto which is the url that give me errors. In turn, the cache build fails and never gets built.

Can someone help me figure out how to get the cache to build?

Thank you,

Steve.

Steven E. Bailey

Wednesday 11 October 2006 8:50:30 am

I did a quick check with a folder the same name as the siteaccess and had no problem. I'm going to guess that it's your rewrite rules. Do they look something like this (all the "static" directories would have to be whatever you configured and the root path would have to be correct):

RewriteEngine On
RewriteCond /var/www/ezpublish/static/review/index.html -f
RewriteRule ^/$ /static/review/index.html [L]
RewriteCond /var/www/ezpublish/static/review/index.html -f
RewriteRule ^$ /static/review/index.html [L]
RewriteCond %{REQUEST_METHOD} !^POST$
RewriteCond /var/www/ezpublish/static$1/index.html -f
RewriteRule ^(.*)$ /static$1/index.html [L]
RewriteRule !\.(gif|css|jpg|png|jar|ico|js)$ /index.php
DirectoryIndex index.php index.html

Certified eZPublish developer
http://ez.no/certification/verify/396111

Available for ezpublish troubleshooting, hosting and custom extension development: http://www.leidentech.com

Stephen Schwenker

Wednesday 11 October 2006 11:08:44 am

I think I have figured it out.

I found another post that mentioned the CachedSiteAccesses config param and that worked for the building of the cache files. Here is my setting.

[CacheSettings]
CachedSiteAccesses[]=reviews

I do have another problem though. Cache files are being generated for folders that I do not want to be cached. for example, I haven't configured the /test folder to be cached, but cache is being built. Also, The cache doesn't seem to be rendering properly. If I create a sub item in the folder test and view the cache, then the links for the sub items are not displayed, but if I delete the cache and then view it without the cache then the subitem links show up.

Do you have any suggestions on how to fix that?

Thank you,

Steve

Stephen Schwenker

Wednesday 11 October 2006 12:12:40 pm

Hey,

It looks like some of the cache is not being updated. in the static/review/test folder there is an index file. I have monitored it and it seems to be updating.

There are some files in the static/reviews/content/full/view/... whick I believe are internal parts of the page that are not being updated. Can anyone help me figure out how to get everything to update properly?

Thank you,

Steve.

Andrew Kelly

Thursday 12 October 2006 5:08:11 am

I'm having a similar problem to one that Stephen mentions, namely,
cache is being generated for content that should not be cached.
Even if I only designate a single node for StaticCache'ing, after a bit
my cache directory fills up with a ton of other rubbish. Cache is even
being created for registering users, and this just can't be right.

Anybody else seeing this, or know what's going on?
Or, more importantly, know how to fix it?

Andy

Kristof Coomans

Friday 13 October 2006 4:25:25 am

There are several bugs in the static caching mechanismn, see my bug report: http://ez.no/community/bugs/static_cache_uses_old_cache_to_create_new_cache_on_publishing

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org