All add-ons currently require PHP 7.4 or greater.

On July 4th 2024 PHP 8.2 will be the new minimum requirement for all add-ons. Expect any add-on released after that date to require 8.2 or greater. Some releases may not immediately take advantage of 8.x specific features in PHP, which means you might, be able to continue using new releases in PHP 7.4, however, if you experience an error the first thing you should do is update to PHP 8.2 then create a support ticket if the error persists.

Please read about the changes to BoldMinded add-on licensing.

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