Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author GatorDog

    (@gatordog)

    Thanks for the suggestion. This would involve implementing some sort of cache removal queue for automatic cache expiry based upon server load. Not sure this would be worth the effort considering the new cache warming feature, which should regenerate the cache before any vistor accesses the page in question. Have you had a chance to checkout this new feature?

    Thread Starter massimod

    (@massimod)

    No, no. Apparently i was not clear. When a page is requested by a visitor, gator cache checks if is should be invalidated. Am i right ?

    So before invalidating, check for Server load.

    Thread Starter massimod

    (@massimod)

    This feature is available in Hyper Cache Extended and will be also in the next version of Zen Cache Pro.

    Plugin Author GatorDog

    (@gatordog)

    Oh, I see what you mean now. I thought you were referring to the automatic refreshing when posts are updated, but you’re meaning when a page has timed out or surpassed it’s cache lifetime. That would be an interesting feature to implement. Will check it out and let you know something.

    Plugin Author GatorDog

    (@gatordog)

    Turns out this is a rather simple option to implement, although it will not work on Windows Servers, where PHP has no support for the sys_getloadavg() function.

    I’m going to hold off on releasing a new update since a new version was just pushed yesterday. However, if you’d like to try it out before the next update, I can push the mods to the trunk, where you can download here from GatorCache > Developers > Other Versions > Development Version. Should be available in the next day or two.

    Plugin Author GatorDog

    (@gatordog)

    This has been added as an option in the latest release 2.0.11. You’ll find it under the “Cache Rules” tab under Advanced Settings.

    Thread Starter massimod

    (@massimod)

    Nice to know. If you could also show the current sysload as a reference somewhere within the

    “Do not expire cache when system load is at this threshold: calls sys_getloadavg()”

    line, so we get a general idea.

    Thanks !

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[SUGGESTION] Don't Expire if Server load is high’ is closed to new replies.