Clearcache shell script problem

Author Message

Paul Forsyth

Tuesday 04 November 2003 1:10:48 am

I've just submitted this bug about the clearcache shell script and the fact it can't handle the new package structure for cache.

http://ez.no/developer/ez_publish_3/bug_reports/clearcachesh_shell_script_doesnt_clear_cache_from_packaged_sites

Is this just a bug or should we not use this file anymore and soley use the clearcache function from the admin?

paul

Ole Morten Halvorsen

Tuesday 04 November 2003 1:15:42 am

Paul,

Have you tried using the --var-subdir option?

Example:
bin/shell/clearcache.sh --clear-all --var-subdir=intranet

Senior Software Engineer - Vision with Technology

http://www.visionwt.com
http://www.omh.cc
http://www.twitter.com/omh

eZ Certified Developer
http://ez.no/certification/verify/358441
http://ez.no/certification/verify/272578

Paul Forsyth

Tuesday 04 November 2003 1:31:24 am

I did see that option (but havent used it) but shouldnt the script be able to determine which site designs are being used?

I guess the script should perhaps use the code within kernel/setup/cache.php to keep it and the admin in sync. If development efforts improve the admin code then maybe the shell script should be depracted or point to this code in some way?

paul

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 31 2025 08:14:15
Script start
Timing: Jan 31 2025 08:14:15
Module start 'layout'
Timing: Jan 31 2025 08:14:15
Module start 'content'
Timing: Jan 31 2025 08:14:16
Module end 'content'
Timing: Jan 31 2025 08:14:16
Script end

Main resources:

Total runtime1.1278 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0044 588.1328151.2109
Module start 'layout' 0.00440.0031 739.343836.6484
Module start 'content' 0.00761.1194 775.9922892.1953
Module end 'content' 1.12690.0009 1,668.18757.8516
Script end 1.1278  1,676.0391 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2944160.0002
Check MTime0.00140.1201160.0001
Mysql Total
Database connection0.00060.053710.0006
Mysqli_queries1.077795.5512570.0189
Looping result0.00050.0483550.0000
Template Total1.093597.020.5467
Template load0.00200.180820.0010
Template processing1.091496.771020.5457
Template load and register function0.00130.115610.0013
states
state_id_array0.00170.150310.0017
state_identifier_array0.00280.245520.0014
Override
Cache load0.00170.1504160.0001
Sytem overhead
Fetch class attribute can translate value0.00050.046820.0003
Fetch class attribute name0.00240.212230.0008
XML
Image XML parsing0.00020.019820.0001
class_abstraction
Instantiating content class attribute0.00000.000930.0000
General
dbfile0.00360.3236100.0004
String conversion0.00000.000740.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs