Monday 21 May 2012 10:24:02 pm - 5 replies
I have had a VPS coming up to its disk limit. Through the Ubuntu DU cmmand, I have discovered that the template-block cache has grown to 2.7G. Using the clear cache command in the backoffice does not clear this. I have sites of a similar size, with far more traffic that do not create anything like this cache size. Is there a way of clearing/reducing this cache. If I simply clear the filesystem, will it then be recreated, or will this create a problem with the site?
This is eZpublish 4.2 running on Ubuntu 5.10
Thanks for any pointers.
Monday 21 May 2012 10:45:29 pm
I've got this as an alias:
alias clash='if [ -n "$EZ" -a -d "$EZ" ]; then rm -rf $EZ/var/cache/* $EZ/var/*/*cache*/*;else echo -e "\$EZ not set";fi'
EZ of course would be your ezpublish root.
But, there's something weird going on here - there's no reason to have that much cache... I've seen cache go crazy out of control for two reasons - nested cache blocks and bad parameters to cache blocks.
Nested cache blocks should never happen... and it's possibly hard to find... but I'm guessing this is what's happening.
The other possibility is that if you have a bunch of variables to your cache blocks it could create large amounts of files... I don't see this as very likely but some dynamic, user-content driven, well visited sites with communities would generate large caches based on if a user was logged in or not. Take a close look at your cache blocks to see if there is a problem.
Tuesday 22 May 2012 9:17:15 am
Are you using clearcache.php --purge? Otherwise no files are removed, they are just timed out in the var/cache/expiry.php file.
If you are using purge, is it taking too long to clear it, going over the max execution time? How many files are there anyway? (find var/cache var/*/cache -type f |wc -l ) It would have to be in the 10,000+ to take any amount of time - well, of course that depends on hardware specs too.
Thursday 12 July 2012 4:22:36 pm
I discovered a similar problem during a complete download of an ez-installation via FTP. Is there a way to delete the cache-files? How can i find out wich are not in use anymore? I have no root access to the site, so i have to do this manually...
Thanks in advance...
You must be logged in to post messages in this topic!