From 339e5a5746085334a6e1b9526321576b1c316286 Mon Sep 17 00:00:00 2001 From: Matthew Hilton Date: Fri, 23 Aug 2024 09:28:43 +1000 Subject: [PATCH 1/2] [#54] Re-enable caches properly --- classes/cache_factory.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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. From 9184f959baaa085b0d14538fa36330c5cd9db41d Mon Sep 17 00:00:00 2001 From: Peter Burnett Date: Mon, 26 Aug 2024 10:35:28 +1000 Subject: [PATCH 2/2] chore: Fix CI on master branch --- .github/workflows/ci.yml | 10 +++++++--- version.php | 1 + 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2d7349a..9e806d4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,7 +4,11 @@ name: ci on: [push, pull_request] jobs: - test: - uses: catalyst/catalyst-moodle-workflows/.github/workflows/group-35-to-311-ci.yml@main + ci: + uses: catalyst/catalyst-moodle-workflows/.github/workflows/ci.yml@main + secrets: + moodle_org_token: ${{ secrets.MOODLE_ORG_TOKEN }} with: - disable_behat: true \ No newline at end of file + disable_behat: true + # Ignore doc fail on legacy branch. + disable_phpdoc: true diff --git a/version.php b/version.php index 5f0bb59..3066a8c 100644 --- a/version.php +++ b/version.php @@ -28,3 +28,4 @@ $plugin->requires = 2017051500; $plugin->component = 'tool_forcedcache'; // Full name of the plugin (used for diagnostics). $plugin->maturity = MATURITY_ALPHA; +$plugin->supported = [35, 311];