Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set the page cache expiry to be equal to Cache-control. #32

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Dec 17, 2013

  1. Set the page cache expiry to be equal to Cache-control.

    By default, Drupal will clear CACHE_TEMPORARY on cron. However, this
    means that at best, your cache expiry for the page cache can be no
    smaller than your cron interval. Some site might set cron to run once
    every 30 or 60 minutes, when they might have other data that they want
    to keep fresh on the page.
    
    By setting the expiry to be equal to the cache lifetime, we ensure that
    cache_get() will return FALSE if the object is truly expired.
    
    This is an implementation of https://drupal.org/node/1279654#comment-6473782
    deviantintegral committed Dec 17, 2013
    Configuration menu
    Copy the full SHA
    1835181 View commit details
    Browse the repository at this point in the history