[geeklog-cvs] geeklog-1.3/sql mysql_tableanddata.php,1.101,1.102

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


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

Modified Files:
	mysql_tableanddata.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: mysql_tableanddata.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/sql/mysql_tableanddata.php,v
retrieving revision 1.101
retrieving revision 1.102
diff -C2 -d -r1.101 -r1.102
*** mysql_tableanddata.php	6 Feb 2005 17:21:49 -0000	1.101
--- mysql_tableanddata.php	26 Mar 2005 03:03:06 -0000	1.102
***************
*** 943,946 ****
--- 943,947 ----
  $_DATA[] = "INSERT INTO {$_TABLES['vars']} (name, value) VALUES ('totalhits','0') ";
  $_DATA[] = "INSERT INTO {$_TABLES['vars']} (name, value) VALUES ('lastemailedstories','') ";
+ $_DATA[] = "INSERT INTO {$_TABLES['vars']} (name, value) VALUES ('last_scheduled_run','') ";
  
  ?>




More information about the geeklog-cvs mailing list