[geeklog-cvs] geeklog-1.3 config.php,1.158,1.159

blaine at iowaoutdoors.org blaine at iowaoutdoors.org
Fri Mar 25 22:03:07 EST 2005


Update of /var/cvs/geeklog-1.3
In directory www:/tmp/cvs-serv17046

Modified Files:
	config.php 
Log Message:
Added new API to allow plugins to run sheduled tasks or code. An internal GL cron process that won't be time sensitive as it's dependant on someone accessing the site to activate the code but should serve most requirements. Added new setting to set the interval between runs -  $_CONF['cron_schedule_interval'].

Code will also check if there is a CUSTOM_runSheduledJob function as some blocks or non-plugins may have code to run as well.

Added new record to the vars table to hold that last UNIX_TIMESTAMP of when the Internal Cron check was last run.


Index: config.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/config.php,v
retrieving revision 1.158
retrieving revision 1.159
diff -C2 -d -r1.158 -r1.159
*** config.php	20 Feb 2005 09:54:09 -0000	1.158
--- config.php	26 Mar 2005 03:03:05 -0000	1.159
***************
*** 415,418 ****
--- 415,425 ----
  $_CONF['skip_preview']  = 0; // If = 1, allow user to submit comments and stories without previewing
  
+ // +---------------------------------------------------------------------------+
+ // | Internal Geeklog CRON or scheduled Task/Function setting                  |
+ // | Plugins can use the runSheduledJob API to activate any automated tasks    |
+ // | or add code in lib-custom to the CUSTOM_runSheduledJob function           | 
+ // +---------------------------------------------------------------------------+
+ $_CONF['cron_schedule_interval']        = 86400;   // Seconds - Default 1 day
+ 
  
  // Topic Settings




More information about the geeklog-cvs mailing list