hardillb
Forum Replies Created
-
Forum: Plugins
In reply to: [W3 Total Cache] Content Negotiation cacheJust a quick update, after more playing this weekend it appears to be the Page Cache not the Object cache that is the problem.
I’ve managed to install the PHP Redis extension into the standard WordPress container and when using Redis for Page Cache things look to work correctly.
I think the Object Cache comment earlier may have been because I’d cleared the caches as part of testing different configurations.
Forum: Plugins
In reply to: [W3 Total Cache] Content Negotiation cacheNo, this is a self hosted setup and I don’t have somewhere to run redis or memcache at the moment.
I can probably live with Object Cache turned off for now, but it would be good to support caching multiple formats for a given object as I expect the ActivityPub plugin to get a lot of use.
Plugin:
Forum: Plugins
In reply to: [W3 Total Cache] Content Negotiation cacheHi,
I’m using the “disk” cache with the default settings. (wp-admin caching is disabled)
I believe the problem is that the cache is not taking the content type into consideration, e.g. if the page is requested with
Accept: text/html
and then subsequently requested withAccept: application/activity+json
the HTML version is still returned.With the Object Cache disabled I get the correct version with each request.
e.g.curl -H “Accept: application/activity+json” https://blog.hardill.me.uk/2024/09/26/new-geographic-node-red-nodes/
vs
curl -H “Accept: text/html” https://blog.hardill.me.uk/2024/09/26/new-geographic-node-red-nodes/
Forum: Plugins
In reply to: [W3 Total Cache] Content Negotiation cacheJust for a reference, after disabling the Object Cache the ActivityPub plugin works as expected.