Clear SiteStats process cache after DB update
[lhc/web/wiklou.git] / includes / SiteStats.php
index 03b4b8c..604ab93 100644 (file)
@@ -36,6 +36,10 @@ class SiteStats {
        /** @var int[] */
        private static $pageCount = [];
 
+       static function unload() {
+               self::$loaded = false;
+       }
+
        static function recache() {
                self::load( true );
        }