Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkondou <kondou@ts.unde.re>2014-03-12 18:20:51 +0400
committerkondou <kondou@ts.unde.re>2014-03-12 18:20:51 +0400
commit547b5634646b0556462233f8cac37a41d63a44fb (patch)
tree1a3ed523663c786496e37dca5929c544b945e92e /cron.php
parentce790119aea4a1cec2e8d8e8b493fec00b87693f (diff)
Log last cron execution
Fixes #2012
Diffstat (limited to 'cron.php')
-rw-r--r--cron.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/cron.php b/cron.php
index 44ca421328b..f8bc78ee8e2 100644
--- a/cron.php
+++ b/cron.php
@@ -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) {