diff --git a/src/console/controllers/CacheController.php b/src/console/controllers/CacheController.php index 723fdaf0..a668c3f7 100755 --- a/src/console/controllers/CacheController.php +++ b/src/console/controllers/CacheController.php @@ -322,6 +322,7 @@ public function actionRefresh(): int public function actionRefreshExpired(): int { Blitz::$plugin->refreshCache->refreshExpiredCache(); + Blitz::$plugin->refreshCache->refresh(); if (!$this->queue) { Craft::$app->runAction('queue/run'); @@ -342,6 +343,7 @@ public function actionRefreshExpired(): int public function actionRefreshExpiredElements(): int { Blitz::$plugin->refreshCache->refreshExpiredElements(); + Blitz::$plugin->refreshCache->refresh(); if (!$this->queue) { Craft::$app->runAction('queue/run'); @@ -406,6 +408,7 @@ public function actionRefreshUrls(array $urls = []): int } Blitz::$plugin->refreshCache->refreshCachedUrls($urls); + Blitz::$plugin->refreshCache->refresh(); if (!$this->queue) { Craft::$app->runAction('queue/run'); @@ -428,6 +431,7 @@ public function actionRefreshTagged(array $tags = []): int } Blitz::$plugin->refreshCache->refreshCacheTags($tags); + Blitz::$plugin->refreshCache->refresh(); if (!$this->queue) { Craft::$app->runAction('queue/run');