Share » Forums » Developer » Forum notification problem

Forum notification problem

Forum notification problem

Monday 30 January 2006 1:00:44 am - 2 replies

Author Message

Ɓukasz Serwatka

Monday 30 January 2006 11:32:03 pm

Hi Albert,

Did you setup cronjob for eZ publish?

http://ez.no/products/ez_publish_open_source_enterprise_cms/documentation/installation/the_cronjob_script

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

Albert Hornos

Tuesday 31 January 2006 1:00:59 am

Thank you very much!

I've solved the problem adding this at index.php

/* Run Notification Filters */

$notifyFilterLastRunTimeFile = 'ezfilternotify_last_runtime';

$filterAutoRunInterval = 7200; //2 hours

$runFilter = false;

if( file_exists($notifyFilterLastRunTimeFile) )

{

 if( time() - filemtime( $notifyFilterLastRunTimeFile ) > $filterAutoRunInterval )

 {

$runFilter = true;

 }

}

else

 $runFilter = true;

 

if( $runFilter )

{

 include_once( 'kernel/classes/notification/eznotificationeventfilter.php' );

 touch($notifyFilterLastRunTimeFile);

 eZNotificationEventFilter::process();

}

It runs automatically the cronjob for notification when someone access the site, but only every 2 hours.

All of this is explained at this link:

http://ez.no/products/ez_publish_open_source_enterprise_cms/documentation/configuration/configuration/cron_jobs

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu