Some functions on this portal require JavaScript but your browser does not support it or it has been disabled.
Skip to main content
Wednesday 15 June 2005 5:56:34 am - 2 replies
Xavier Dutoit
Wednesday 15 June 2005 6:47:49 am
Could you describe how you run the cronjobs from the index ? Don't get it...
X+
http://www.sydesy.com
Peter Putzer
Wednesday 15 June 2005 7:16:35 am
* Run Notification Filters */ $notifyFilterLastRunTimeFile = 'ezfilternotify_last_runtime'; $filterAutoRunInterval = 60; //every minute $runFilter = false; if( file_exists($notifyFilterLastRunTimeFile) ) { if( time() - filemtime( $notifyFilterLastRunTimeFile ) > $filterAutoRunInterval ) { $runFilter = true; } } else $runFilter = true; if( $runFilter ) { /* Run notifications */ include_once( 'kernel/classes/notification/eznotificationeventfilter.php' ); touch($notifyFilterLastRunTimeFile); eZNotificationEventFilter::process(); } /* Run Workflow cronjob */ $workflowLastRunTimeFile = 'ezworkflow_last_runtime'; //$workflowAutoRunInterval = 300; //every 5 minutes $workflowAutoRunInterval = 50; //every 50 seconds $runWorkflow = false; if( file_exists($workflowLastRunTimeFile) ) { if( time() - filemtime( $workflowLastRunTimeFile ) > $workflowAutoRunInterval ) { $runWorkflow = true; } } else $runWorkflow = true; if( $runWorkflow ) { /* Run workflow */ $isQuiet = true; touch($workflowLastRunTimeFile); include_once( 'cronjobs/workflow.php' ); }
Accessible website starting from eZ publish 3.0 (currently: 4.1.0): http://pluspunkt.at
You must be logged in to post messages in this topic!