Table of contents:
How to clear cache using eZ Publish 4
Use the website administration interphase to clear all cache via a gui.
If you know how to use the command line you can use it to clear cache.
If you are using a complete unix like operating system you can use the following command to clear and purge all cache within eZ Publish.
cd /path/to/ezpublish; ./bin/php/ezcache.php --clear-all --purge;
If you are using Windows you can use the following command to clear and purge all cache within eZ Publish.
# cd c:/web/pro/ezpublish/doc; c:\php\php ./bin/php/ezcache.php --clear-all --purge;
If you are working on a multi-siteaccess website, the specific siteaccess must be appended to the clear cache code.
cd /path/to/ezpublish; ./bin/php/ezcache.php --clear-all --purge -s siteaccess_name;
If you are unable to use the administration gui or command line to clear cache, you can still remove the cache files manually.
cd /path/to/ezpublish; rm -vrf var/cache; rm -vrf var/ezwebin_site/cache
If you are unable to use the administration gui you can use this command line to clear this specific combination / type of cache.
cd /path/to/ezpublish; ./bin/php/ezcache.php --clear-id=imagealias --clear-all; ./bin/php/ezcache.php --clear-id=imagealias --clear-all --purge; ./bin/php/ezcache.php --clear-all --purge;
The above example commands suggested in the forum.
Article provided by eZpedia
All text is available under the terms of the GNU Free Documentation License
Powered by eZ Publish Community Project 4.2011
Hosted by Swiss eZ Publish partner YMC