Slowdown from Waypath plugin (3 posts)

  1. kelson
    Posted 11 years ago #

    Lately I've noticed pages on my site sometimes take 60 seconds to load. Whenever that's happened, I've noticed that http://www.waypath.com is inaccessible, and turning off the Waypath plugin has resolved the issue. Then I can wait until they're up again, and reenable it. But I don't want to have to notice it myself whenever this happens.
    Staticize mitigates it, but only if that page has been cached since the last post. I've also thought about putting the Waypath results in an iframe, but that introduces a whole set of browser and CSS compatibility issues (not to mention deprecation).
    What I'd like is a way to set a shorter timeout on the plugin -- or any plugin that grabs remote data -- so if it doesn't get a response within, say, 3 seconds, it decides it's not getting one and keeps going.
    Any suggestions?

  2. carthik
    Posted 11 years ago #

    Depending on how the plugin works, you can use
    http:php.net/ini_set and http://php.net/ini_restore to set and restore timeouts for remote file reads etc.
    of course, the ini_set will be on top of the plugin, and the ini_restore at the bottom.

  3. kelson
    Posted 11 years ago #

    Thanks. That seems to be working!

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.