Solution: Clear Cache in eZ Publish
Table of contents:
Introduction
How to clear cache using eZ Publish 4
Administration
Use the website administration interphase to clear all cache via a gui.
- Simply navigate to Setup tab
- Click the clear cache icon
- Refresh browser window of website
Command line
If you know how to use the command line you can use it to clear cache.
Unix
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;
Windows
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;
Siteaccess Specific
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;
Manual
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
Specific: Clearing image alias 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.