Caching Conflict between WordPress Post and Other Output
-
I posted my first WordPress post after activitating the ActivityPub plugin and it appeared on Mastodon. Initially, I clicked through to it and it looked like a normal WordPress post and I’m assuming was cached as I saw it. Later, a subscriber contacted me and was getting something very different (I’m not sure what this is). When I returned to the page, I saw the same thing. I was so focused on trying to get the actual post to display, I only kept a screenshot:
When I cleared the page cache (I’m using WP-Optimize), there was no change in what appeared in the browser after a CTRL-F5 refresh. When I deactivated the ActivityPub plugin, WordPress displayed the normal blog post. When I reactivated the plugin, it continued to show the blog post correctly. I’m just guessing but it seems like a cache issue and related to the ActivityPub output.
I’m wondering if it’s the same issue as this one, which might be solved by excluding paths from cache. But since the URL involved has returned both the correct post and the ?JSON?, I’m not really sure what to exclude from cache. (I’m also not entirely sure it’s cache, as I had to turn off Cloudflare’s bot fight mode to enable Mastodon to receive the post, and I’m wondering if Cloudflare is interfering in other ways).
Do you have any guidance/pointers on caching whatever it is ActivityPub generates to isolate it from the WordPress content (if that’s what that output is), so that the two pieces don’t overlap in cache?
Thanks for any help. I don’t honestly know how you stay on top of all of these interactions without cloning yourself, so I appreciate your time. If you could even tell me where I might look next, I’m happy to do that.
The page I need help with: [log in to see the link]
- The topic ‘Caching Conflict between WordPress Post and Other Output’ is closed to new replies.