Publisher is EE6 compatible, but it does not support the Fluid field. 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 not clearing cached local files on MSM site if the path/URL is the same between the two sites

Status Resolved
Add-on / Version Speedy 1.5.1
Severity
EE Version 5.4.3

Aasun Eble

Jun 16, 2022

I have an MSM site.  Speedy is implemented on both sites.

The main site has all the content.. the second site just has some (not all the templates or site URLs) set up primarily to manage different branding.

On the main site, there are several templates (URLs/paths) that are set up to be cleared with cache clearing rules when content is edited.  These are all local speedy cache fragments.  All working as expected.  However, there are a handful of the URLs/paths that have the same path/URL on both sites.  And, the local cached file is not clearing when a channel entry is edited.

I’ve tripled checked all my cache clearing rules, using “Clear Items”, and it’s not working for these that have the same path for both sites.

I’m using “local/wedding-website”. (where “wedding-website” is the segment_1 of the page, and the exact name of the directory in the local cache files attributed to the channel that I have the cache clearing configured for.

The only difference that I can see with these local caches that are not clearing is that it exists in two locations:

system/user/cache/speedy/default_site/local/wedding-website
AND
system/user/cache/speedy/site_2/local/wedding-website

Again, all other local caches that do not have a corresponding URL on the second site clear as expected using the same/similar cache clearing rules.

Is there something I need to do differently for MSM sites with Speedy cache clearing?

#1

BoldMinded (Brian)

Jun 17, 2022

Hi, Aasun. Can you please provide some screenshots or videos illustrating the issue. What you described is hard to follow without being intimately familiar with the sites, like you are.

#2

BoldMinded (Brian)

Jun 17, 2022

Specifically I need to see your cache clearing rules. Also, are you asking if clearing the cache on site A should clear caches on site B too? So you want to clear site B’s cache that has the same url as site A, when an entry is updated in site A?

#3

Aasun Eble

Jun 17, 2022

Ok.  I found my issue and it’s working..

I didn’t have a trailing slash in my cache clearing rule.  When I added that, the local cache files were cleared as expected.

The trailing slash doesn’t seem to be required on URLs that don’t match both sites (I’ve never used a trailing slash before on any Speedy install).  But, when the cache clearing rule has a a URL match on the main and the second site, it wasn’t clearing.  After I added the slash, it’s working.

PS.  All the email notifications from your support ticket system come through as unrendered HTML, which makes the URL/Link in the email not work without copying/pasting and editing to remove the closing P tag.

#4

BoldMinded (Brian)

Jun 17, 2022

Glad to hear you figured it out.

BTW, I tested the email format and in Mail and Gmail they are rendering proper HTML. What client are you using? Did this comment come through as proper HTML?

#5

Aasun Eble

Jun 18, 2022

I use MacOS Mail and iOS Mail. Neither client renders it correctly. It outputs the HTML tags in the email.

#6

BoldMinded (Brian)

7 days ago

I’m not sure what you say about the html email then. Every test I’ve done shows the email displaying properly in multiple clients.

Login to reply