Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: Speedy cache clearing rules not showing correct channel list in MSM site

Status Resolved
Add-on / Version Speedy 1.7.0 (trial)
Severity
EE Version 6.27

Eric Harth

Jan 15, 2023

Hi

I’m testing Speedy in an MSM site. When I go to the ‘cache clearing rules’ settings, I’m ONLY seeing the channels for the default site. The following patch appears to correct the issue for me.

From 9dfc1e0124ddd338323296983a1d244d759ec889 Mon Sep 17 00:00:00 2001
From: Eric <my@email>
Date: Mon, 16 Jan 2023 11:14:23 +1100
Subject: [PATCH] Addon Speedy: Filtering channels in cache breaking rules

---
 public/system/user/addons/speedy/mcp.speedy.php | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/public/system/user/addons/speedy/mcp.speedy.php b/public/system/user/addons/speedy/mcp.speedy.php
index bf2a43165..469dede3b 100644
--- a/public/system/user/addons/speedy/mcp.speedy.php
+++ b/public/system/user/addons/speedy/mcp.speedy.php
@@ -1184,8 +1184,7 @@ class Speedy_mcp extends ControlPanel
     public function cache_clearing()
     {
         $this->setHeading('speedy_mcp_cache_clearing');
-
-        $channels = ee('Model')->get('Channel')->all();
+        $channels = ee('Model')->get('Channel')->filter('site_id', ee()->config->item('site_id'))->all();
         $table_data = [];
         $table_status = [
             'yes'  => [
-- 
2.37.0 (Apple Git-136)
#1

BoldMinded (Brian)

Thanks Eric. I’ll take a look at that soon.

#2

BoldMinded (Brian)

This will be added to the next release. Thanks again for pointing this out.

Login to reply