Forums / Setup & design / ViewCaching makes problems when changing priority

ViewCaching makes problems when changing priority

Author Message

Marko Žmak

Friday 18 August 2006 6:53:28 am

I forgot to mention that you have to put:

RelatedSiteAccessList[]=user_siteacces

in site.ini of your admin siteacces, not in user.

And clear all the caches after this.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Andrew Kelly

Friday 18 August 2006 7:22:24 am

Nope, still no change.

And the patch from Jan K. was already in my version (3.8.3 rev. 16460).

So, where do we go from here?
ViewCaching worked brilliantly last week. Since I've upgraded from 3.7.x to 3.8.3 it doesn't.
Publishing content in the admin siteaccess does not delete any caches at all.

Anybody?

Marko Žmak

Monday 21 August 2006 12:47:59 am

Have you by any chance change the CacheDir in site.ini? I know I had some problems when I change it.

I don't know anything else that I could suggest you. You could try to inspect the eZ code. It helped me to find bugs several times.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Andrew Kelly

Monday 21 August 2006 2:16:54 am

I did a standard upgrade, namely:
- unpack 3.8.3
- copy from my site to 3.8.3
- - design/public_access
- - design/admin_access
- - settings/override/*
- - settings/siteaccess/public_access
- - settings/siteaccess/admin_access
- - var/*

Nothing has changed in var, nor in any of my ini files.

This thread has taught me that the clearing of view caches has changed from 3.7.x to 3.8.x,
with site.ini->SiteAccessSettings->RelatedSiteAccessList being used instead of
content.ini->VersionView->AvailableSiteDesignList. I understand, however, that for the
sake of backwards compatibility, AvailableSiteDesignList is still functional in the cascading ini overwrites.
I have altered my site to use BOTH RelatedSiteAccessList AND AvailableSiteDesignList, so that if, for whatever reason, the array isn't properly filled with the information in RelatedSiteAccessList, at least correct and usefull config data will be available. I have also verified that all folders in var/public_access/cache/content are mod 777 and that all files within are 666.
Everything I am reading and understanding is telling me that when I publish content in the admin interface, at the same time all content view caches should be deleted.
This is still not happening.

If I now have to read source code to find out why...
par for the course, I guess.

Could you (or anybody who knows) please tell me where I should start reading
and/or the specific chain of method calls that lead from content publishing to view cache deletion?

Andy

Kristof Coomans

Monday 21 August 2006 2:43:01 am

Hello Andy

The cache clearing process starts in the content/publish operation, more specific eZContentOperationCollection::clearObjectViewCache (<i>kernel/content/ezcontentoperationcollection.php</i>). It calls eZContentCacheManager::clearContentCacheIfNeeded (<i>kernel/classes/ezcontentcachemanager.php</i>).

Finally you will end up with eZContentCache::cleanup ((<i>kernel/classes/ezcontentcache.php</i>) where the cache files will be cleared by calling eZFSFileHandler::fileDeleteByWildcard (<i>kernel/classes/clusterfilehandlers/ezfsfilehandler.php</i>).

I would turn on debug output and debug redirection and conditional debug for the clustering feature: debug.ini[GeneralCondition]kernel-clustering=enabled. Then put debug statements where needed and publish/modify a test object.

Good luck!

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

Marko Žmak

Monday 21 August 2006 3:18:06 am

Maybe this helps:

I DIDN'T change my eZ version, I left it 3.8.1 and I added the RelatedSiteAccessList[] setting and it now works for me.

Maybe the patch isn't working as it should? Try isnpecting this file:

kernel/classes/ezcontentcache.php

at the place where the patch is applied.

But DON'T do this if you're not familiar enough with PHP.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

eZ debug

Timing: Jan 19 2025 08:58:19
Script start
Timing: Jan 19 2025 08:58:19
Module start 'content'
Timing: Jan 19 2025 08:58:19
Module end 'content'
Timing: Jan 19 2025 08:58:19
Script end

Main resources:

Total runtime0.2436 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0097 589.6250180.8125
Module start 'content' 0.00970.0236 770.4375102.4531
Module end 'content' 0.03330.2102 872.8906530.6250
Script end 0.2435  1,403.5156 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00431.7714200.0002
Check MTime0.00160.6715200.0001
Mysql Total
Database connection0.00140.591410.0014
Mysqli_queries0.160565.89391410.0011
Looping result0.00160.66431390.0000
Template Total0.209886.110.2098
Template load0.00090.384210.0009
Template processing0.208885.711710.2088
Override
Cache load0.00060.259810.0006
Sytem overhead
Fetch class attribute can translate value0.00090.384210.0009
XML
Image XML parsing0.00030.104610.0003
General
dbfile0.01968.0379200.0010
String conversion0.00000.002830.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs