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]

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

eZ debug

Timing: Jan 19 2025 03:35:23
Script start
Timing: Jan 19 2025 03:35:23
Module start 'layout'
Timing: Jan 19 2025 03:35:23
Module start 'content'
Timing: Jan 19 2025 03:35:23
Module end 'content'
Timing: Jan 19 2025 03:35:23
Script end

Main resources:

Total runtime0.5608 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0047 590.4141152.6406
Module start 'layout' 0.00470.0022 743.054739.4766
Module start 'content' 0.00690.5525 782.5313555.7031
Module end 'content' 0.55930.0014 1,338.234412.1250
Script end 0.5607  1,350.3594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00290.5155160.0002
Check MTime0.00120.2214160.0001
Mysql Total
Database connection0.00060.101110.0006
Mysqli_queries0.510391.0000600.0085
Looping result0.00040.0736580.0000
Template Total0.538396.020.2691
Template load0.00190.334920.0009
Template processing0.536495.649120.2682
Template load and register function0.00010.023910.0001
states
state_id_array0.00060.107110.0006
state_identifier_array0.00060.108620.0003
Override
Cache load0.00160.2814230.0001
Sytem overhead
Fetch class attribute can translate value0.00060.115920.0003
Fetch class attribute name0.00120.208060.0002
XML
Image XML parsing0.00390.692320.0019
class_abstraction
Instantiating content class attribute0.00000.002680.0000
General
dbfile0.00350.6330230.0002
String conversion0.00000.001640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs