SmartViewCache problem !

Author Message

francis Nart

Monday 21 February 2005 2:15:28 am

Hi,
we're using ez 3.5
In the file "settings / viewcache.ini" SmartCacheClear is enabled : SmartCacheClear=enabled
t
Here is the content of that file

"settings / override / viewcache.ini.append.php" :

[ViewCacheSettings]
SmartCacheClear=enabled

[rubrique]
ClearCacheMethod=clear_object_caches_only

[actualite]
DependentClassIdentifier[]
DependentClassIdentifier[]=rubrique
ClearCacheMethod=clear_object_and_parent_nodes_caches

[article]
DependentClassIdentifier[]
DependentClassIdentifier[]=rubrique
ClearCacheMethod=clear_object_and_parent_nodes_caches

[reference]
DependentClassIdentifier[]
DependentClassIdentifier[]=rubrique
ClearCacheMethod=clear_object_and_relating_objects_caches

[lien_web]
DependentClassIdentifier[]
DependentClassIdentifier[]=reference
ClearCacheMethod=clear_object_and_parent_nodes_caches

[image]
DependentClassIdentifier[]
DependentClassIdentifier[]=reference
ClearCacheMethod=clear_object_and_parent_nodes_caches

[fichier_flash]
DependentClassIdentifier[]
DependentClassIdentifier[]=reference
DependentClassIdentifier[]=article
ClearCacheMethod=clear_object_and_parent_nodes_caches

When we try to add for example an "actualité" in the "actualite", the objetc does not appear on the website.
We need to clear the cache to view it. So apparently, we're missing something.

Any clue ?

Jack Rackham

Monday 21 February 2005 5:07:09 pm

First I don't think you need to enable SmartCache in the settings/viewcache.ini, because when you upgrade EZ your SmartCache settings will be lost. Anyway in the head of the file it is written:
#
# NOTE: It is not recommended to edit this files directly, instead
# a file in override should be created for setting the

Second look inside your <b>setting/siteaccess/yoursite</b> and <b>setting/siteaccess/yoursite_admin</b>, if viewcache.ini.append.php exists in any of this folders delete it because It overrides you override.
In my case it simply said "[ViewCacheSettings] SmartCacheClear=enabled" so when I edited a article no cache was cleared at all.

francis Nart

Tuesday 22 February 2005 6:11:42 am

but we did all this !
and in fact what you see written above is of course a copy of the override file !

But apparently, as you just mentioned it, in your case it doesn't work for when you edit an article it should refresh the cache correctly !

francis.

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 18:43:04
Script start
Timing: Jan 18 2025 18:43:04
Module start 'layout'
Timing: Jan 18 2025 18:43:04
Module start 'content'
Timing: Jan 18 2025 18:43:05
Module end 'content'
Timing: Jan 18 2025 18:43:05
Script end

Main resources:

Total runtime0.7205 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.0079 589.0391152.6250
Module start 'layout' 0.00790.0032 741.664139.4453
Module start 'content' 0.01110.7082 781.1094513.8281
Module end 'content' 0.71930.0011 1,294.937512.1641
Script end 0.7204  1,307.1016 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.4815160.0002
Check MTime0.00140.1875160.0001
Mysql Total
Database connection0.00160.223210.0016
Mysqli_queries0.658691.4104570.0116
Looping result0.00070.0927550.0000
Template Total0.685395.120.3426
Template load0.00220.299820.0011
Template processing0.683194.812120.3416
Template load and register function0.00020.030810.0002
states
state_id_array0.00100.136710.0010
state_identifier_array0.00070.095520.0003
Override
Cache load0.00200.2759620.0000
Sytem overhead
Fetch class attribute can translate value0.00040.053620.0002
Fetch class attribute name0.00230.324040.0006
XML
Image XML parsing0.00090.121720.0004
class_abstraction
Instantiating content class attribute0.00000.001540.0000
General
dbfile0.00090.1291160.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 18
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs