DELETE VAR/CACHE?

Author Message

Andy Boston

Monday 21 June 2010 3:09:01 am

Hi,

The clear cache button doesn't seem to be clearing the cache properly.

Can I just delete the contents of the var/cache folder via ftp or will it break the system?

Please let me know :)

Gaetano Giunta

Monday 21 June 2010 3:31:33 am

yes you can

take care: you have 2 cache dirs...

Principal Consultant International Business
Member of the Community Project Board

Sébastien Antoniotti

Monday 21 June 2010 3:46:49 am

Hi,

"

rm -Rf var/cache

rm -Rf var/{var_dir_of_your_instance}/cache

"

;)

eZ Publish Freelance
web : http://www.webaxis.fr

Andy Boston

Monday 21 June 2010 4:13:51 am

Thanks :)

André R.

Monday 21 June 2010 10:05:54 am

Probably because of missing unix file system rights for the user you are clearing cache with, for instance www user does not have rights to delete files created by cli user or opposite.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Gaetano Giunta

Tuesday 22 June 2010 1:21:03 am

To add further insight to Andre's words: it often happens that eZP cronjobs are run with a different user than the one running the webserver process (www or httpd). If those cronjobs crash for one reason or another, they might leave lock files in the cache that the webserver later cannot remove on its own.

Principal Consultant International Business
Member of the Community Project Board

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