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 committed Aug 22, 2024
1 parent 049b0e4 commit debbc52
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 @@ -68,7 +68,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 debbc52

Please sign in to comment.