Template caching issues

Author Message

James Packham

Tuesday 30 September 2003 4:46:03 am

Hi

I'm having some (seemingly) bizzare issues with eZ Publish and caching. When I make changes to settings for templates in my override files I can't see them straight away - even if I clear the cache through admin and force my browser to get a new copy.

On the other hand if I try and view the changes on another machine they appear! If I go off and do something else for a bit then the changes come up on all my machines, but obviously this is not a very convienient way to develop templates and experiment with various new settings.

Is there something that I'm doing that's obviously wrong? Please let me know if any more details are required for diagnosis, as I don't really know what other details to give...

Cheers in advance

~James~

Don MacLeod

Wednesday 01 October 2003 5:00:33 am

Hi James

I'm having very similar problems on 3.2. When making changes to a pagelayout.tpl file for example, the only way I could get this reflected on the site was to search my ez directory hierarchy for a cache file with a keyword placed I'd previously in the .tpl file. Once I'd located this and deleted it, the change became visible on the site. In this instance, the file was found in ....

\var\{sitedesign}\cache\template-block\8\a\4

What resides in this area I'm not sure or how to navigate the file structure beneath it - I don't know what the "\8\a\4" bit refers to!!

This is causing me serious grief because like you, I can't experiment with template changes. Of course, selecting "Clear Template Cache" in the admin site has no effect at all.

What's making things even worse for me is that I'm not sure whether my override.ini.append changes are having any effect - because I don't trust what I see!!

Anyone out there got an idea?

Thanks,

Don.

Paul Forsyth

Wednesday 01 October 2003 5:05:22 am

Take a look at this thread:

http://ez.no/content/view/full/34610

paul

Don MacLeod

Wednesday 01 October 2003 6:08:43 am

Marvellous. Thanks, that did the trick.

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 01:12:24
Script start
Timing: Jan 19 2025 01:12:24
Module start 'layout'
Timing: Jan 19 2025 01:12:24
Module start 'content'
Timing: Jan 19 2025 01:12:25
Module end 'content'
Timing: Jan 19 2025 01:12:25
Script end

Main resources:

Total runtime0.6324 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 589.1484152.6250
Module start 'layout' 0.00510.0028 741.773439.4453
Module start 'content' 0.00790.6233 781.2188543.9922
Module end 'content' 0.63110.0012 1,325.210912.1719
Script end 0.6324  1,337.3828 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.4819160.0002
Check MTime0.00130.2055160.0001
Mysql Total
Database connection0.00060.098510.0006
Mysqli_queries0.582692.1214620.0094
Looping result0.00060.1003600.0000
Template Total0.605895.820.3029
Template load0.00210.328220.0010
Template processing0.603795.453120.3018
Template load and register function0.00010.017410.0001
states
state_id_array0.00080.130410.0008
state_identifier_array0.00150.230420.0007
Override
Cache load0.00180.2829260.0001
Sytem overhead
Fetch class attribute can translate value0.00060.090930.0002
Fetch class attribute name0.00100.165050.0002
XML
Image XML parsing0.00070.116430.0002
class_abstraction
Instantiating content class attribute0.00000.001450.0000
General
dbfile0.00080.1336160.0001
String conversion0.00000.000940.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
1content/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
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs