Forums / Setup & design / eZFlow Frontpage Caching

eZFlow Frontpage Caching

Author Message

Michael Fürst

Friday 17 April 2009 1:35:15 pm

Hi there,

After a while caching of my eZ 4.1.0 Site works well. I've only one last Problem with the caching of my eZFlow Frontpage:

<strong>Example of my problem:</strong>
I've one article titled "My Story". This article is shown on an eZ Frontpage in a block.
Now, if I change the title of the article, the cache for the view page is cleared well (the title in the detail view changes). But: The title in the eZFlow Block on the Frontpage doesn't change (cache isn't cleared).

So I've to clear the content-cache what is horrible for the performance (all sites have to be regenerated).

I'm looking for a solution that the Frontpage cache is (eZFlow) is automatically cleared on change of a item in a block. Timed-Cache Clearing is also a not so good solution.

Has anyone an idea how to fix this problem (I also couldn't find a solution with SmartCaching rules).

Thanks in advance,
regards,
Michael

André R.

Saturday 18 April 2009 2:46:37 am

> So I've to clear the content-cache what is horrible for the performance (all sites have to be regenerated).

You do not need to do this for the whole site, you can do it pr page in admin by clicking on the large icon on the top left part of the node view when your browsing the object. (If it is a folder it will be a large folder icon, but flow pages only use the default white icon).

AS for automatically clearing cache, I'm not sure how that could be done, if flow pages uses relations internally, then it would be a matter of setting up viewcache.ini rules (though relations should be cleared automatically).

I'll ask Łukasz to give you an answer.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Michael Fürst

Monday 20 April 2009 1:18:06 am

Hi Andre,

Thanks for your response. I know, it's also possible to clear single nodes/pages over the bash with clearcache php file for example. But I think it's not really comfortable and a possible reason for mistakes, if the journalists have to clear the frontpage cache over the CMS (by clicking the icon) manually.

Isn't it possible to configure the cachse systems, so that it automatically clears the cache of a frontpage side, if one of the block-linked items changes? At the moment I'm not using the flow-functionality, all items in the blocks are set manually.

Regards,
Michael

Łukasz Serwatka

Monday 20 April 2009 3:29:18 am

Hi Mike,

Few questions. Do you use a custom frontpage class (with different then 'frontpage' identifier)? How does your template for custom block look like? Do you fetch content from tree placed under frontpage which cache is not refreshed?

You can try add to viewcache.ini.append.php for article class following settings:

[article]
...
AdditionalObjectIDs[]=frontpage_object_id
# add this one if missing
ClearCacheMethod[]=object
...

I can't reproduce your error on default installation. I have tested it with custom block. So more information about your setup is welcome.

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

Michael Fürst

Monday 20 April 2009 4:57:33 am

Hi Lukasz,

I didn't declare the object id's of the frontpages explicitly.
I just declared:

[article_standard]
DependentClassIdentifier[]=folder
DependentClassIdentifier[]=frontpage
ClearCacheMethod[]=object
ClearCacheMethod[]=parent
ClearCacheMethod[]=relating

When I now declare the additional frontpage object id's as suggested, it works (162 is the object ID of the frontpage object):

[article_standard]
DependentClassIdentifier[]=folder
DependentClassIdentifier[]=frontpage
AdditionalObjectIDs[]=162
ClearCacheMethod[]=object
ClearCacheMethod[]=parent
ClearCacheMethod[]=relating

But i believe, that it shall also work with the first configuration, shouldn't it? Cause the dependent ClassIdentifiert "frontpage" is declared there!?

To your question: I'm using an own article class "article_standard" with the standard frontpage class. I've just added some new fields to the frontpage class, but the name has not changed.

Regards,
Michael

Łukasz Serwatka

Monday 20 April 2009 5:39:22 am

Are you able to reproduce this issue on clean installation? E.g on 4.1.0?

There has to be something that trigger an "issue" in your installation. How does your publish scenario look like (reg. to content structure)?

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

Kostadinka Ignatieva

Monday 10 August 2009 2:00:41 am

Hello!

This approach:

[article_standard]
AdditionalObjectIDs[]=162

is working perfectly well for objects of class 'frontpage' but not for other custom classes that use the 'Layout' content class attribute.

Has anyone had the same problem?

Thanks!!!

Iguana IT - http://www.iguanait.com

eZ debug

Timing: Jan 18 2025 11:37:49
Script start
Timing: Jan 18 2025 11:37:49
Module start 'content'
Timing: Jan 18 2025 11:37:51
Module end 'content'
Timing: Jan 18 2025 11:37:51
Script end

Main resources:

Total runtime1.6746 sec
Peak memory usage4,096.0000 KB
Database Queries210

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0071 588.8438180.8359
Module start 'content' 0.00711.4124 769.6797692.1641
Module end 'content' 1.41950.2550 1,461.8438345.0625
Script end 1.6745  1,806.9063 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00460.2728210.0002
Check MTime0.00150.0895210.0001
Mysql Total
Database connection0.00070.044010.0007
Mysqli_queries1.571593.84332100.0075
Looping result0.00310.18552080.0000
Template Total1.638997.920.8194
Template load0.00260.157520.0013
Template processing1.636297.707320.8181
Template load and register function0.00010.005410.0001
states
state_id_array0.00080.048810.0008
state_identifier_array0.00230.135020.0011
Override
Cache load0.00230.1392590.0000
Sytem overhead
Fetch class attribute can translate value0.00270.162750.0005
Fetch class attribute name0.00160.0953100.0002
XML
Image XML parsing0.00200.119450.0004
class_abstraction
Instantiating content class attribute0.00000.0016130.0000
General
dbfile0.00320.1935420.0001
String conversion0.00000.000430.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
6content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
16content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
6content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 40
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs