Page cache not cleared on HTTPS urls on editing
-
There is a bug in the page cache when working with https URLs. When saving pages via the editor interface, the system will attempt to clear the cache for the affected page. Because of an error in a strcmp, https urls will yield the wrong key and the existing cache entries will not be deleted.
Patch for fix as follows:
— wp-content/plugins/w3-total-cache/lib/W3/PgCache.php.orig 2015-09-13 05:43:45.917016000 +0000
+++ wp-content/plugins/w3-total-cache/lib/W3/PgCache.php 2015-09-13 05:43:49.461016000 +0000
@@ -958,7 +958,7 @@
$encryption = ”, $compression = ”, $content_type = ”, $request_uri = ”) {if ($request_uri)
– $key = substr($request_uri, strtolower(substr($request_uri, 0, 8)) == ‘https’ ? 8: 7);
+ $key = substr($request_uri, strtolower(substr($request_uri, 0, 5)) == ‘https’ ? 8: 7);
else
$key = $this->_request_host . $this->_request_uri;
- The topic ‘Page cache not cleared on HTTPS urls on editing’ is closed to new replies.