“pretty permalinks” and WP 4.8?
-
Having absolutely _zero_ luck getting this plugin to function properly with WP 4.8, and the only thing left that I can think of is that the plugin doesn’t like the permalink type my client has selected.
Problem behavior is that post updates and comments aren’t being shown to non-logged-in users (and I’ve got varnish set to pass through logged in users, so updates and comments show to them without issues). Clearing the varnish cache by either manually restarting varnish or manually issuing purges & bans causes the updates/comments to appear instantly.
The plugin _appears_ to be functioning properly (it does show a yellow splat for “We did not find Varnish active for this domain,” but I’m assuming that’s because I’m suppressing the X-Varnish header), but I see nothing at all in varnishlog coming through when I trigger the “Empty Cache” button manually or when I create WP posts. If I issue a purge command myself via curl, varnishlog shows the expected output and the manual purges complete successfully. Varnishhist and varnishncsa both show normal activity and cache hit rates are high.
After a few days of smashing my head against the desk, the only thing I can think of is that I’m using the pre-configured “Post name” setting for permalinks, rather than using “day & name” or “custom.” I think this is causing the problem.
When I run varnishlog -g request -q ‘ReqMethod eq “PURGE”‘ and try to trigger the plugin by pressing “empty cache,” i see nothing at all in varnishlog. No requests appear. Same for when I post and approve a comment or update a post. No PURGE requests at all show up in the log. And, again, when I issue purge requests manually via curl, the purge requests show up in the log and everythign works great.
Obviously I can’t keep manually doing this in production, and altering the permalink scheme is not going to fly, either.
Does anyone have any additional troubleshooting suggestions? If this is indeed the problem, is there anything I can change in the plugin to fix things?
edit – looks like the reason the plugin thinks varnish isn’t working is because varnish-status.php tries to key on the presence of a “X-CACHEABLE” header, which doesn’t apply to Varnish 4 or 5.
Varnish 4 is >3 years old. Surely it’s supported…right?
- The topic ‘“pretty permalinks” and WP 4.8?’ is closed to new replies.