summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorazinck2016-07-27 22:17:31 (GMT)
committerMathieu Lutfy2016-07-27 22:17:31 (GMT)
commitf92721a1b969b13c70d61039806c5a54380f9de2 (patch)
treec5a4c2a387def305f127a705e8b1deec4257bbe1
parent94fa47e08c147c740e7c2faa731c6ee90bf65826 (diff)
Issue #1957532 by azinck: Boost with Redirect Module and 301
-rw-r--r--boost.module6
1 files changed, 6 insertions, 0 deletions
diff --git a/boost.module b/boost.module
index d5de09b..a0438f2 100644
--- a/boost.module
+++ b/boost.module
@@ -285,6 +285,12 @@ function boost_drupal_goto_alter(&$path, &$options, &$http_response_code) {
*/
function boost_exit($destination = NULL) {
global $_boost;
+
+ // Bypass caching on redirects (issues #1176534 and #1957532).
+ if(!empty($destination)) {
+ $_boost['is_cacheable'] = FALSE;
+ }
+
// Bail out of caching.
if (!isset($_boost['cache_this'])) {
if (!isset($_boost['is_cacheable'])) {