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
|