HTTPS Purge From Cache Not working
-
Cache keys seem to be generated appropriately using W3TC when the website is in HTTPS (and you have the cache SSL pages set), but not when you click “Purge from Cache”.
I have noticed that the logic for determining if the page is HTTPS is just plain wrong in the latest version 0.9.4.1
W3\PgCache.php around like 960
if ($request_uri)
$key = substr($request_uri, strtolower(substr($request_uri, 0, 8)) == ‘https’ ? 8: 7);Substring of a request uri from 0 to 8 will *never* evaluate to “https” and thus deleting keys never works for https pages.
It should be https:// or substring 0,5 instead.
Also get_post_urls function in W3\SharedPageUrls.php needs to be updated. post_permalink($post_id) needs to be changed to get_permalink($post_id), as the former has been deprecated by wordpress.
- The topic ‘HTTPS Purge From Cache Not working’ is closed to new replies.