diff --git a/classes/cache_factory.php b/classes/cache_factory.php index be5fa7d..9c85405 100644 --- a/classes/cache_factory.php +++ b/classes/cache_factory.php @@ -67,7 +67,10 @@ public function create_config_instance($writer = false) { if (empty($CFG->siteidentifier)) { $this->set_state(self::STATE_STORES_DISABLED); } else { - $this->set_state(self::STATE_READY); + // We cannot directly set the state to enabled from disabled. + // So we instead start and finish an update. + $this->updating_started(); + $this->updating_finished(); } // Return the instance.