~catch-drupal/+junk/pressflow-content-cache-variable

« back to all changes in this revision

Viewing changes to modules/cookie_cache_bypass/cookie_cache_bypass.module

  • Committer: David Strauss
  • Date: 2010-06-23 21:02:47 UTC
  • mfrom: (82.1.7 merge-drupal-6.17)
  • Revision ID: david@fourkitchens.com-20100623210247-ggd9fi82dyiayz98
Merge changes from the 6.17 branch that were intended for the mainline.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
}
6
6
 
7
7
function cookie_cache_bypass_submit() {
 
8
  global $cookie_domain;
8
9
  $lifetime = variable_get('cache_lifetime', 300);
9
 
  setcookie('NO_CACHE', 'Y', $_SERVER['REQUEST_TIME'] + ($lifetime + 300), '/');
 
10
  setcookie('NO_CACHE', 'Y', $_SERVER['REQUEST_TIME'] + ($lifetime + 300), '/', $cookie_domain);
10
11
}