Forums / Setup & design / Template caching issues

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.

eZ debug

Timing: Jan 19 2025 21:33:40
Script start
Timing: Jan 19 2025 21:33:40
Module start 'content'
Timing: Jan 19 2025 21:33:41
Module end 'content'
Timing: Jan 19 2025 21:33:41
Script end

Main resources:

Total runtime1.2286 sec
Peak memory usage4,096.0000 KB
Database Queries199

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0084 588.9453180.8438
Module start 'content' 0.00841.0794 769.7891549.0703
Module end 'content' 1.08780.1407 1,318.8594333.3828
Script end 1.2285  1,652.2422 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00470.3786210.0002
Check MTime0.00160.1332210.0001
Mysql Total
Database connection0.00110.086810.0011
Mysqli_queries1.136592.50351990.0057
Looping result0.00240.19901970.0000
Template Total1.182696.320.5913
Template load0.00200.159020.0010
Template processing1.180696.099820.5903
Template load and register function0.00020.016710.0002
states
state_id_array0.00200.160310.0020
state_identifier_array0.00190.151120.0009
Override
Cache load0.00160.1308260.0001
Sytem overhead
Fetch class attribute can translate value0.00170.141840.0004
Fetch class attribute name0.00140.111750.0003
XML
Image XML parsing0.00520.423540.0013
class_abstraction
Instantiating content class attribute0.00000.000850.0000
General
dbfile0.01891.5372270.0007
String conversion0.00000.000730.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 5

Time used to render debug report: 0.0004 secs