WordPress.org

Support

Support » Plugins and Hacks » [Resolved] HTTPS bug fix

[Resolved] HTTPS bug fix

  • Hello Stefano,

    I found a bug in Hyper Cache – it affects https enabled pages on a site. We have few of these and in the hyper_cache_invalidate_post() function, the protocol type is stripped incorreclty (just substr()), so we get a wrong md5.

    cache.php constructs the md5 differently.

    So the cached file is never cleared when the page is saved.

    As a quick fix, I changed hyper_cache_invalidate_post() to strip the protocol part of URI with a regex, rather than a set number of chars – https:// is longer than http://

    $link = substr($link, 7);

    was replaced with

    $link = preg_replace( '~^.*?://~', '', $link );

    Thanks,
    Martin

    http://wordpress.org/extend/plugins/hyper-cache/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello Stefano,

    also – could you please include this or similar fix for the issue in next version? We don’t want to be fixing this by hand on each site.

    Thanks,
    Martin

    Hello Stefano,

    thanks for including this fix!

    Thanks,
    Martin

    Hello FolioVision if the issue has been resolved would it be ok if you could close this thread as resolved.

    Kind regards

    Hello mbrsolution,

    sure, I’m closing it now. I’m glad if we helped to improve the plugin.

    Thanks,
    Martin

    Hello FolioVision,

    It is a pleasure to have someone like yourself helping out and improving the plugin.

    We all appreciate it very much.

    Kind regards

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] HTTPS bug fix’ is closed to new replies.