Forums / General / Testing digest notifications

Testing digest notifications

Author Message

Nathan Sharp

Monday 21 March 2005 4:58:35 pm

Hi, I've been having a great time playing around with a new site using ezPublish and have just gotten around to working on the notification e-mails. Is there a simple/easy way to force a send of a digest e-mail for testing? Having to only do 1 test per day will be slow to debug ;-)

Frederik Holljen

Wednesday 23 March 2005 1:40:03 am

Hm.. I don't quite get you. You can run the cronjob so you send out notification much more often that once a day.

Nathan Sharp

Wednesday 23 March 2005 7:07:25 pm

Perhaps I am confused also. I do run the cron job every 15 minutes, but the whole point of the digest format is that it only goes out once per day. How can I force it to go out now, even though it would normally wait until tonight so that I can debug it?

James Robertson

Wednesday 04 October 2006 3:49:06 pm

Edit eznotificationcollection_item.send_date DB field of the record you wish to send so that it is some time in the past (eg. 0).

Nathan Sharp

Monday 16 October 2006 12:55:15 pm

Thanks for the idea! It sounds like what I need. Next time I am messing with the templates, I will try it.

Petr Mifek

Tuesday 24 July 2007 2:09:24 am

That works, but at least as of 3.9.x, you can't set 0 - this won't work. You must use ie. "1". See kernel/classes/notification/eznotificationcollectionitem.php:

    function fetchByDate( $date )
    {
        return eZPersistentObject::fetchObjectList( eZNotificationCollectionItem::definition(),
                                                    null, array( 'send_date' => array( '<', $date ),
                                                                 'send_date' => array( '!=', 0 ) ) , null,null,
                                                    true );
    }

eZ debug

Timing: Jan 18 2025 10:40:13
Script start
Timing: Jan 18 2025 10:40:13
Module start 'content'
Timing: Jan 18 2025 10:40:14
Module end 'content'
Timing: Jan 18 2025 10:40:14
Script end

Main resources:

Total runtime1.1533 sec
Peak memory usage4,096.0000 KB
Database Queries207

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0074 587.7031180.8438
Module start 'content' 0.00740.9821 768.5469613.0000
Module end 'content' 0.98940.1638 1,381.5469337.3828
Script end 1.1532  1,718.9297 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00470.4047210.0002
Check MTime0.00190.1644210.0001
Mysql Total
Database connection0.00120.106510.0012
Mysqli_queries1.074893.19022070.0052
Looping result0.00230.19882050.0000
Template Total1.121697.320.5608
Template load0.00230.198120.0011
Template processing1.119497.056420.5597
Template load and register function0.00040.034310.0004
states
state_id_array0.00150.125810.0015
state_identifier_array0.00140.119720.0007
Override
Cache load0.00190.1652170.0001
Sytem overhead
Fetch class attribute can translate value0.00160.138350.0003
Fetch class attribute name0.00180.153780.0002
XML
Image XML parsing0.00200.172150.0004
class_abstraction
Instantiating content class attribute0.00000.002180.0000
General
dbfile0.00360.3151330.0001
String conversion0.00000.000530.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/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: 17
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs