• Hi guys-

    We’ve come across an issue when using this on an HTTPS site. It looks like in lib/W3/PgCache.php:980 you have this line:

    $key = substr($request_uri, strtolower(substr($request_uri, 0, 8)) == 'https' ? 8: 7);

    the ternary of which will always return 7. Changing it to this:

    $key = substr($request_uri, strtolower(substr($request_uri, 0, 8)) == 'https://' ? 8: 7);

    makes it evaluate correctly for HTTPS sites. We’ve modified the plugin core to fix it and it seems to work as expected. Obviously modifying the plugin isn’t ideal, but it seems the only way we can get it to work.

    https://wordpress.org/plugins/w3-total-cache/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘HTTPS bug’ is closed to new replies.