How do you turn SmartViewCache off?

Author Message

Deane Barker

Monday 23 January 2006 9:39:01 pm

Or, better yet, how do you get SmartViewCache to work? Try as I might, I cannot get the view cache to clear when publishing an object.

I turned the view cache on, and got an immediate speed improvement. The rendering of one page went from 2.2 seconds to 0.4 seconds, for example.

However, changes to content would not appear unless the content view cache was cleared.

I did some research and discovered the Smart View Cache system. It was enabled, so it strikes me that it should have been working, but it wasn't.

I decided that since this is a small site, I don't really care if the entire content cache clears whenever content is published, so I shut SmartViewCache off. Nothing changed -- content changes still required me to clear the cache manually.

I went ahead and disabled SmartViewCache everywhere -- global, global overrides, all siteaccesses. Nothing changed.

I've read about everything possible on it, included a FAQ that said I need to add site designs to the AdditionalSiteDesignList[] setting in content.ini. I did this. Nothing changed.

Is this a known bug? There are a couple bug reports on it, but they claim to be fixed.

I'm on version 3.7.2.

Ɓukasz Serwatka

Monday 23 January 2006 11:27:48 pm

Hi Deane,

I think your problem can be solve by proper SamrtViewCache configuration. For which class and parent class do you want clear view cache after publish?

You wrote that you have changed AdditionalSiteDesignList[] in content.ini but make sure that this settings are for admin interface siteaccess in content.ini.append.php. You need to provide your design folder name.

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

Deane Barker

Tuesday 24 January 2006 5:41:52 am

Is there anyway to make it global? It's not a big site, and they don't make changes often. I'd be happy if the entire view cache cleared after every publishing operation.

Deane

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

Main resources:

Total runtime0.6996 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.0052 589.0313152.6250
Module start 'layout' 0.00520.0030 741.656339.4453
Module start 'content' 0.00820.6899 781.1016541.6953
Module end 'content' 0.69810.0015 1,322.796912.1563
Script end 0.6996  1,334.9531 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4629160.0002
Check MTime0.00130.1796160.0001
Mysql Total
Database connection0.00070.105110.0007
Mysqli_queries0.646692.4197570.0113
Looping result0.00060.0795550.0000
Template Total0.667495.420.3337
Template load0.00180.263920.0009
Template processing0.665695.133520.3328
Template load and register function0.00010.017110.0001
states
state_id_array0.00070.100510.0007
state_identifier_array0.00120.177020.0006
Override
Cache load0.00150.2133220.0001
Sytem overhead
Fetch class attribute can translate value0.00060.085520.0003
Fetch class attribute name0.00190.273250.0004
XML
Image XML parsing0.00110.150220.0005
class_abstraction
Instantiating content class attribute0.00000.001460.0000
General
dbfile0.00200.2915240.0001
String conversion0.00000.001140.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/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.0002 secs