Forums / Extensions / eZ Flow / Dynamic block not updating unless I edit Frontpage object

Dynamic block not updating unless I edit Frontpage object

Author Message

A Fowler

Friday 12 June 2009 12:07:26 pm

I have a "dynamic" block of front-page articles. Its source is a folder object. It works-- at least, it shows the articles in that folder.

But it is not "dynamic." Whenever I add a new article to that folder, the front page does not show the article until I "Edit" the Home [Frontpage] object. I don't need to actually change anything, only click "Edit" and then "Send for publishing."

The eZ Flow documentation indicates that no such editorial action is required for the contents of a dynamic block to update. What am I missing?

Thanks!

A Fowler

Friday 12 June 2009 12:48:40 pm

If I delete an article from the source folder, it disappears from the front page. The new articles that have been added since the last edit of the Frontpage object, and before the deletion, still do not show up.

A Fowler

Tuesday 23 June 2009 6:07:50 pm

The answer may seem too obvious to some, but it was new to me. I had heard about setting up the cron scripts, and even had mine all done, as directed in one of the online documentation pages. But I didn't know I had to also add ezflow into my crontab. I finally figured this out by tracing back from the eZFlowOperations.update() method to find out when and where it should be called.

So I have this in my crontab now, for future reference for anyone else that may need it. I couldn't find any reference to it in the eZ Flow setup guide, and only vague references in the forums and online documentation.

# The path to the eZ Publish directory
EZPUBLISH_HOME=/path/to/ezpublish

# The location of the PHP command-line interface binary
PHPCLI=/usr/bin/php

# Other cron jobs omitted...

# Instruct cron to run the eZ Flow Update cronjob every minute
* * * * * cd $EZPUBLISH_HOME && $PHPCLI runcronjobs.php -q ezflow 2>&1

eZ debug

Timing: Jan 18 2025 01:58:34
Script start
Timing: Jan 18 2025 01:58:34
Module start 'content'
Timing: Jan 18 2025 01:58:34
Module end 'content'
Timing: Jan 18 2025 01:58:35
Script end

Main resources:

Total runtime0.2791 sec
Peak memory usage4,096.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0070 588.0156180.7422
Module start 'content' 0.00700.0105 768.757894.9766
Module end 'content' 0.01750.2615 863.7344524.2188
Script end 0.2790  1,387.9531 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00371.3136200.0002
Check MTime0.00140.4861200.0001
Mysql Total
Database connection0.00110.381910.0011
Mysqli_queries0.202072.39121410.0014
Looping result0.00150.52331390.0000
Template Total0.261193.610.2611
Template load0.00090.318910.0009
Template processing0.260293.235410.2602
Override
Cache load0.00060.219610.0006
Sytem overhead
Fetch class attribute can translate value0.00080.272310.0008
XML
Image XML parsing0.00030.116410.0003
General
dbfile0.02579.1922200.0013
String conversion0.00000.002530.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