Commit f92721a1 authored by azinck's avatar azinck Committed by bgm

Issue #1957532 by azinck: Boost with Redirect Module and 301

parent 94fa47e0
......@@ -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'])) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment