Forums / General / How to clean caches for one and only siteaccess

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

How to clean caches for one and only siteaccess

Author Message

Benjamin Lorteau

Saturday 21 March 2009 2:30:40 am

Hello,

For performance reason, I need to clean the caches for a particular siteaccess, not the whole site.

I tried

php bin/php/ezcache.php -s <siteaccess_name> --<clear-options>

but I didn't work, the specified cache items were removed for all siteaccesses.

Looking into the ezcache.php code, there's no mention of siteaccess option.

Is there another way to do it ?

eZ Publish personal project : http://www.aeriesguard.com [fr]

Benjamin Lorteau

Monday 23 March 2009 3:05:42 am

Maybe I didn't post my question in the right forum, should I post it in the "developer" forum ?

eZ Publish personal project : http://www.aeriesguard.com [fr]

Steven E. Bailey

Monday 23 March 2009 5:03:11 am

Are you sure your clear-options were correct? The -s should have worked.

If you have command line access, you can go to the directory set by VarDir in the ini settings for that siteaccess - go to the cache directory located in that directory and remove everything.

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

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

Benjamin Lorteau

Monday 23 March 2009 5:46:31 am

Thanks Steven for the reply.

Yes, I checked, but every time the admin siteaccess caches are cleaned along with the public siteaccess caches I wanted to clean in the first place.

If I have no other choice, I will do like you said, picking the caches folder I want to be removed one by one.

eZ Publish personal project : http://www.aeriesguard.com [fr]