Skip to content

Commit

Permalink
[#54] Re-enable caches properly
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewhilton authored and Peterburnett committed Aug 26, 2024
1 parent ddd30b2 commit 339e5a5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion classes/cache_factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 339e5a5

Please sign in to comment.