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

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

Main resources:

Total runtime0.2408 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.0079 589.3203152.6563
Module start 'layout' 0.00790.0050 741.976639.5234
Module start 'content' 0.01290.2262 781.5000436.9297
Module end 'content' 0.23920.0016 1,218.42978.2422
Script end 0.2407  1,226.6719 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00351.4404160.0002
Check MTime0.00130.5534160.0001
Mysql Total
Database connection0.00110.451510.0011
Mysqli_queries0.191479.4736570.0034
Looping result0.00070.3021550.0000
Template Total0.193780.420.0968
Template load0.00251.046620.0013
Template processing0.191179.385620.0956
Template load and register function0.00020.097510.0002
states
state_id_array0.00140.572710.0014
state_identifier_array0.00100.422820.0005
Override
Cache load0.00200.8376130.0002
Sytem overhead
Fetch class attribute can translate value0.00090.379910.0009
Fetch class attribute name0.00130.541530.0004
XML
Image XML parsing0.00010.046410.0001
class_abstraction
Instantiating content class attribute0.00000.003130.0000
General
dbfile0.00070.2840100.0001
String conversion0.00000.005340.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/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
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: 9
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs