<?php
+/**
+ * GNU social cronish plugin, to imitate cron actions
+ *
+ * @category Cron
+ * @package GNUsocial
+ * @author Mikael Nordfeldth <mmn@hethane.se>
+ * @copyright 2013 Free Software Foundation, Inc.
+ * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0
+ * @link http://www.gnu.org/software/social/
+ */
class CronishPlugin extends Plugin {
+ public function onCronMinutely()
+ {
+ common_debug('CRON: Running minutely cron job!');
+ }
+
public function onCronHourly()
{
common_debug('CRON: Running hourly cron job!');
*/
public function callTimedEvents()
{
- $timers = array('hourly' => 3600,
+ $timers = array('minutely' => 60, // this is NOT guaranteed to run every minute (only on busy sites)
+ 'hourly' => 3600,
'daily' => 86400,
'weekly' => 604800);