diff options
author | kondou <kondou@ts.unde.re> | 2014-03-12 15:20:51 +0100 |
---|---|---|
committer | kondou <kondou@ts.unde.re> | 2014-03-12 15:20:51 +0100 |
commit | 547b5634646b0556462233f8cac37a41d63a44fb (patch) | |
tree | 1a3ed523663c786496e37dca5929c544b945e92e /cron.php | |
parent | ce790119aea4a1cec2e8d8e8b493fec00b87693f (diff) | |
download | nextcloud-server-547b5634646b0556462233f8cac37a41d63a44fb.tar.gz nextcloud-server-547b5634646b0556462233f8cac37a41d63a44fb.zip |
Log last cron execution
Fixes #2012
Diffstat (limited to 'cron.php')
-rw-r--r-- | cron.php | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -119,6 +119,10 @@ try { // done! TemporaryCronClass::$sent = true; + // Log the successfull cron exec + if (OC_Config::getValue('cron_log', true)) { + OC_Appconfig::setValue('core', 'lastcron', time()); + } exit(); } catch (Exception $ex) { |