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/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. 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];