Commit b48ba5a3 authored by bgm's avatar bgm

fix lapsus, boost only works for anonymous users

parent 7b1ad56a
...@@ -631,7 +631,7 @@ function boost_boost_is_cacheable($parts, $request_type = 'normal') { ...@@ -631,7 +631,7 @@ function boost_boost_is_cacheable($parts, $request_type = 'normal') {
global $user; global $user;
if ($user->uid != 0 && $request_type != 'status') { if ($user->uid != 0 && $request_type != 'status') {
$parts['is_cacheable'] = FALSE; $parts['is_cacheable'] = FALSE;
$parts['is_cacheable_reason'] = 'Boost only works for authenticated users.'; $parts['is_cacheable_reason'] = 'Boost only works for anonymous users.';
} }
else { else {
$parts['is_cacheable'] = TRUE; $parts['is_cacheable'] = TRUE;
......
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