Should an editor clear the cache EVERY time?

Author Message

Giovanni Gigante

Tuesday 26 April 2005 10:14:11 am

The docs say that when something new is published, the cache is automatically cleared. However, it does not happen to me (I think).

I have a simple custom class, descriptions of books actually (title, author, etc.), and a template that fetches and displays a list of all these books.
Something like:

{let children=fetch( content, list,
hash( parent_node_id, $node.node_id,
sort_by, $node.sort_array ) )}
{section loop=$:children}
	{$:item.object.data_map.author.content|wash}
	{$:item.object.data_map.title.content|wash}
{/section}
{/let}

However, when I add or modify a book in the admin interface, everything in the user site remains the same, until I manually clear the cache in the admin interface.
I thought that you should clear the cache only when you modify the template, not every time that you simply edit the contents.
Is this normal? Is a site editor forced to manually clear the cache after every editing operation, or is there a way to avoid this?

Thanks
Giovanni

Ɓukasz Serwatka

Tuesday 26 April 2005 11:13:43 pm

Hi Giovanni,

Have you tried this tip?
http://www.ez.no/ez_publish/documentation/faq/general/content_does_not_appear_in_admin_after_publish

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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

Main resources:

Total runtime0.9609 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 589.1641152.6406
Module start 'layout' 0.00640.0029 741.804739.4766
Module start 'content' 0.00930.9498 781.2813530.3516
Module end 'content' 0.95910.0017 1,311.63288.1250
Script end 0.9608  1,319.7578 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.3510160.0002
Check MTime0.00140.1443160.0001
Mysql Total
Database connection0.00080.082310.0008
Mysqli_queries0.912794.9876540.0169
Looping result0.00050.0534520.0000
Template Total0.931296.920.4656
Template load0.00210.219220.0011
Template processing0.929196.691020.4645
Template load and register function0.00040.041110.0004
states
state_id_array0.00090.094910.0009
state_identifier_array0.00090.089320.0004
Override
Cache load0.00170.1817170.0001
Sytem overhead
Fetch class attribute can translate value0.00080.079020.0004
Fetch class attribute name0.00140.149830.0005
XML
Image XML parsing0.00070.075020.0004
class_abstraction
Instantiating content class attribute0.00000.000730.0000
General
dbfile0.00080.0817180.0000
String conversion0.00000.001040.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.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: 16
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs