Finally cracked why W3TC doesn't work properly!
-
I’ve been trying to figure out why W3TC doesn’t correctly invalidate pages after you edit a post. Turns out the cache key that it generates when fetching a page is different to the one that it tries to use to invalidate the cached page for the same URL. And it’s all because the URL in one case has a leading / and in the other a trailing / !!
Trimming off the slashes just before the key is MD5’d in _get_page_key() in PgCache.php cures the problem! Hope this helps others wrestling with this problem.
Paul
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Finally cracked why W3TC doesn't work properly!’ is closed to new replies.