diff options
author | mattpiwik <matthieu.aubry@gmail.com> | 2010-07-29 02:56:04 +0400 |
---|---|---|
committer | mattpiwik <matthieu.aubry@gmail.com> | 2010-07-29 02:56:04 +0400 |
commit | 703618d1540420d30c256d509fdc1015e8476a6a (patch) | |
tree | 4a5507f1211a53405b9b754a41a6cb73ba91404f /piwik.php | |
parent | 37bda492495e3bbdf385a71bc7f131e505936b35 (diff) |
Fixes #587
* Adding automatic crontab task triggered from Tracking requests on piwik.php.
* Define max frequency in config file, default to 1 try each hour.
* Will not run if 'Browser archiving' is disabled, as it means the cron is already setup, and it will run scheduled tasks.
* Note that Scheduled tasks only do not necessarily trigger archiving. The user might still experience slow loading time if he loads Piwik after a long absence.
We could consider writing a scheduled tasks that triggers archiving daily for each website
git-svn-id: http://dev.piwik.org/svn/trunk@2767 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'piwik.php')
-rw-r--r-- | piwik.php | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -8,15 +8,14 @@ * * @package Piwik */ +$GLOBALS['PIWIK_TRACKER_DEBUG'] = false; +define('PIWIK_ENABLE_TRACKING', true); if(file_exists('bootstrap.php')) { require_once 'bootstrap.php'; } - -$GLOBALS['PIWIK_TRACKER_DEBUG'] = false; $GLOBALS['PIWIK_TRACKER_MODE'] = true; -define('PIWIK_ENABLE_TRACKING', true); error_reporting(E_ALL|E_NOTICE); define('PIWIK_DOCUMENT_ROOT', dirname(__FILE__)=='/'?'':dirname(__FILE__)); |