Clear the cache of one site on a multiple site environment

Author Message

Matthieu Sévère

Tuesday 11 May 2010 7:34:24 am

Hello,

I have an instance that will host a dozens a website. Each website has his own subtree and var directory (var/'siteaccess_name')

How can I empty the cache of a specific siteaccess ?

Thank you :)

--
eZ certified developer: http://ez.no/certification/verify/346216

Matthieu Sévère

Tuesday 11 May 2010 7:42:06 am

A solution would be to create a custom cache for each site using the new cache system in 4.3 http://issues.ez.no/12860

Each custom cache would by linked to the cache dir of the current siteaccess.

But I wonder if there is not a simplier solution ?

--
eZ certified developer: http://ez.no/certification/verify/346216

Tero Auralinna

Tuesday 11 May 2010 7:56:30 am

Maybe ezcache.php with siteaccess parameter or site specific admin siteaccess?

NXC Finland - Open Source solutions, Internet marketing and web analytics
http://www.nxc.fi
http://www.auralinna.fi
http://twitter.com/teroauralinna

Matthieu Sévère

Tuesday 11 May 2010 8:03:39 am

It's what I''m looking for but we can't give a siteaccess to ezcache.php

Only clear-tag, clea-id, clear-all

--
eZ certified developer: http://ez.no/certification/verify/346216

Matthieu Sévère

Friday 14 May 2010 4:13:59 am

After (useless) research I just found that the well known -s option is working :)

I really should have tested before ...

--
eZ certified developer: http://ez.no/certification/verify/346216

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 18 2025 02:12:58
Script start
Timing: Jan 18 2025 02:12:58
Module start 'layout'
Timing: Jan 18 2025 02:12:58
Module start 'content'
Timing: Jan 18 2025 02:12:59
Module end 'content'
Timing: Jan 18 2025 02:12:59
Script end

Main resources:

Total runtime0.6309 sec
Peak memory usage4,096.0000 KB
Database Queries64

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 589.3047152.6563
Module start 'layout' 0.00540.0030 741.960939.5078
Module start 'content' 0.00840.6210 781.4688557.5234
Module end 'content' 0.62940.0014 1,338.992212.4063
Script end 0.6309  1,351.3984 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.6052160.0002
Check MTime0.00130.2003160.0001
Mysql Total
Database connection0.00100.150910.0010
Mysqli_queries0.578191.6250640.0090
Looping result0.00050.0788620.0000
Template Total0.601395.320.3007
Template load0.00170.273620.0009
Template processing0.599695.034920.2998
Template load and register function0.00010.014310.0001
states
state_id_array0.00140.225410.0014
state_identifier_array0.00080.122220.0004
Override
Cache load0.00140.2238240.0001
Sytem overhead
Fetch class attribute can translate value0.00090.145220.0005
Fetch class attribute name0.00110.173160.0002
XML
Image XML parsing0.00060.092520.0003
class_abstraction
Instantiating content class attribute0.00000.002990.0000
General
dbfile0.00090.1394160.0001
String conversion0.00000.001440.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
5content/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/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 17
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs