protected function setCron()
    {
        $interval = (int) $this->config('cron_interval', 24 * 60 * 60);

        if (!empty($interval) && (GC_TIME - $this->config('cron_last_run', 0)) > $interval) {
            $url = $this->url('cron', array('key' => $this->config('cron_key', '')));
            $this->setJs("\$(function(){\$.get('$url', function(data){});});", array('position' => 'bottom'));
        }
    }
protected function setCron()
    {
        $interval = (int) $this->config('cron_interval', 24 * 60 * 60);

        if (!empty($interval) && (GC_TIME - $this->config('cron_last_run', 0)) > $interval) {
            $url = $this->url('cron', array('key' => $this->config('cron_key', '')));
            $this->setJs("\$(function(){\$.get('$url', function(data){});});", array('position' => 'bottom'));
        }
    }
protected function setCron ( ) { $ interval = ( int ) $ this -> config ( 'cron_interval' , 24 * 60 * 60 ) ; if ( ! empty ( $ interval ) && ( GC_TIME - $ this -> config ( 'cron_last_run' , 0 ) ) > $ interval ) { $ url = $ this -> url ( 'cron' , array ( 'key' => $ this -> config ( 'cron_key' , '' ) ) ) ; $ this -> setJs ( "\$(function(){\$.get('$url', function(data){});});" , array ( 'position' => 'bottom' ) ) ; } }
Set up self-executing CRON
Set up self - executing CRON