smartCache clear under 4.0.0 not working

Author Message

Xavier Gouley

Friday 29 February 2008 8:42:00 am

Hi, I have the following tree :

- Favorites links (folder)
- - Category 1 (folder)
- - - link 1 (link)
- - - link 2 (link)
- - Category 2 (folder)
- - - ...

The full view of my Favorites folder displays the listitem view of category 1, wich displays the listitem view of each link.

When I edit my link1, the Favorite folder cache is not cleared at all.
I use the following settings in viewcache.ini :

[link]
DependentClassIdentifier[]
DependentClassIdentifier[]=folder
ClearCacheMethod[]
ClearCacheMethod[]=parent
ClearCacheMethod[]=object

In fact, with
AdditionalObjectIDs[]
AdditionalObjectIDs[]=61
where 61 is the object id of my Favorites folder, it does not work either...

any idea ?

Xavier Gouley
http://www.gxapplications.com/eng_blog/GX-Admin-s-Blog/

Xavier Gouley

Thursday 27 March 2008 12:58:33 am

up ?
somebody tried ?

Xavier Gouley
http://www.gxapplications.com/eng_blog/GX-Admin-s-Blog/

Kristof Coomans

Thursday 27 March 2008 7:16:33 am

Hi Xavier

Are you sure you have

[ViewCacheSettings]
SmartCacheClear=enabled

in your viewcache.ini.append.php settings file in settings/override?

Also, there have been done some fixes to view caching, which will be included in eZ Publish 4.0.1. Might be good to check out the latest svn version and see if the problem still occurs. Good luck!

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Xavier Gouley

Thursday 27 March 2008 8:53:45 am

Thanks to Kristof, found why this functionality cannot work :

You have to put these settings in the settings/override folder, not in the settings/siteaccess/front folder !

But I wonder why you have to do this. If I would have (hopely, not for my case) different rules for each siteaccess, I can't...

Xavier Gouley
http://www.gxapplications.com/eng_blog/GX-Admin-s-Blog/

Xavier Dutoit

Thursday 27 March 2008 11:12:05 am

Hi,

Well, it should be in the admin siteaccess, I suppose.

(cache on ez is borderline magic, and you never know if it doesn't work because it doesn't, or because the setting cache isn't cleared, but when you clear the setting cache, you clear often the content cache as well...)

Lit a candle, I've heard it improves things ;)

X+

http://www.sydesy.com

Pierre Tissot

Tuesday 24 June 2008 4:58:12 am

Hi:

I have a problem with de smart cache:

- Catalog (folder, objectID:1)
- kitchen (folder, objectID:2)
- livingroom (folder, objectID:3)
- bathroom (folder, objectID:4)
- Promotions (folder, objectID:5)
- Product 1 (product, objectID:6)
- product 2 (product, objectID:7)
- product 3 (product, objectID:7)

In the settings/override/viewcache.ini.append.php I have:

[ViewCacheSettings]
SmartCacheClear=enabled
ClearRelationTypes[]
ClearRelationTypes[]=common
ClearRelationTypes[]=reverse_common
ClearRelationTypes[]=reverse_embedded
ClearRelationTypes[]=attribute

[product]
DependentClassIdentifier[]
DependentClassIdentifier[]=folder
ClearCacheMethod[]
ClearCacheMethod[]=object
AdditionalObjectIDs[]
AdditionalObjectIDs[]=2
AdditionalObjectIDs[]=3
AdditionalObjectIDs[]=4

The VIEW/FULL of the objects 2,3,4 show the first 3 products of the Promotions. So if I change the products I want to invalidate the cache and rebuilt the view/full of each one of the objects 2,3,4. For this and because i'm smart I used smart cache, but i fell like a donkey because I could manage to make work. can anybody help me?

Pierre Tissot

Tuesday 24 June 2008 6:38:27 am

My problem is that I thought that changing the object priority would trigger the smartcache....and it does't, but editig and publishing will trigger te smart cache

Is there a way of forcing the cache to be rebuilt with the priority?

PiR

Gruppo Femar

Friday 06 March 2009 7:45:46 am

Here's the solution!
I had the same problem on eZ publish 4.0.3 and after many attempts, I solved the problem by enabling the ViewCaching in the admin siteaccess.

in <i>EZROOT</i>/settings/siteaccess/<i>SITE_ADMIN</i>/site.ini.append.php

[ContentSettings]
ViewCaching=enabled

paul bolger

Wednesday 27 May 2009 4:53:38 pm

I'm having a problem with smartcache using ez 4.01.

I have a feedback form, a custom class (50) which accumulates objects in the 'collected information' section.

I have a folder which lists the content of the collected information (node 589) , but I can't get smartcache to clear when an object is added to or deleted from the collection. If I disable smartcache (for the 'site' siteaccess) it works fine when an item is added.

I've tried settings like:

[ruperts_blog_contact_form]
DependentClassIdentifier[]
DependentClassIdentifier[]=folder
ClearCacheMethod[]
ClearCacheMethod[]=object
ClearCacheMethod[]=keyword
ObjectFilter[]
ObjectFilter[]=50

But nothing seems to work. Can anyone help?

Paul Bolger

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 30 2025 21:37:53
Script start
Timing: Jan 30 2025 21:37:53
Module start 'layout'
Timing: Jan 30 2025 21:37:53
Module start 'content'
Timing: Jan 30 2025 21:37:54
Module end 'content'
Timing: Jan 30 2025 21:37:54
Script end

Main resources:

Total runtime1.5932 sec
Peak memory usage8,192.0000 KB
Database Queries83

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0041 588.2656151.2266
Module start 'layout' 0.00410.0031 739.4922220.7188
Module start 'content' 0.00721.5851 960.21094,692.8750
Module end 'content' 1.59230.0009 5,653.085923.8125
Script end 1.5932  5,676.8984 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.2280160.0002
Check MTime0.00130.0831160.0001
Mysql Total
Database connection0.00060.035710.0006
Mysqli_queries1.451791.1142830.0175
Looping result0.00110.0703810.0000
Template Total1.539796.620.7699
Template load0.00210.128920.0010
Template processing1.537796.512620.7688
Template load and register function0.00170.108710.0017
states
state_id_array0.00210.131710.0021
state_identifier_array0.00260.162420.0013
Override
Cache load0.00200.1238970.0000
Sytem overhead
Fetch class attribute can translate value0.00210.129760.0003
Fetch class attribute name0.00330.2102140.0002
XML
Image XML parsing0.00790.498660.0013
class_abstraction
Instantiating content class attribute0.00000.0020160.0000
General
dbfile0.00800.5003400.0002
String conversion0.00000.000440.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
7content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
9content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
19content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
11content/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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 49
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs