From 022fe7d6f440baca096edaf9c49b0ecc0be6c8d0 Mon Sep 17 00:00:00 2001 From: Dmitriy Simushev Date: Thu, 25 Sep 2014 10:38:31 +0000 Subject: [PATCH] Purge cache on cron --- src/mibew/libs/classes/Mibew/Controller/CronController.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mibew/libs/classes/Mibew/Controller/CronController.php b/src/mibew/libs/classes/Mibew/Controller/CronController.php index c6d71322..77858c5c 100644 --- a/src/mibew/libs/classes/Mibew/Controller/CronController.php +++ b/src/mibew/libs/classes/Mibew/Controller/CronController.php @@ -49,6 +49,9 @@ class CronController extends AbstractController set_time_limit(0); + // Remove stale cached items + $this->getCache()->purge(); + // Run cron jobs of the core calculate_thread_statistics(); calculate_operator_statistics();