Hi,

I am using boost module for anonymous users and authcache for authenticated users. Now my question is:

Why boost does not work for authenticated users?

I have integrated some ajax functionality with my website so I am able to load any element on any page via ajax (as I am doing this with authcache also). So, I think I can also do this in case of boost.

So, is there any way I can allow boost to work for authenticated users??

Thanks
DIMSKK

Comments

mikeytown2’s picture

DIMSKK’s picture

Hi,

Thanks for the reply. The above solution is working. I am currently caching only those pages which are same for all anonymous and authenticated users of my site.

But the problem is:

The above method does not allow the boost module to cache the pages when authenticated users view them. It only works if the page has already been visited by an anonymous user and present in the cache. It is then served to the authenticated users.

Is there any way to allow boost to cache pages even when authenticated users view them?? I have tried a lot to solve this problem (spent two days) by hacking the module but failed. Any help will be greatly appreciated.

Thanks
DIMSKK

mikeytown2’s picture

$user->uid
$GLOBALS['_boost_cache_this']

Is what your looking for.

my guess is you just need to modify boost_init at the bottom of the function. get rid of if (empty($user->uid)).

    if (variable_get('boost_enabled', CACHE_NORMAL) != CACHE_AGGRESSIVE) {
      $GLOBALS['conf']['cache'] = CACHE_DISABLED;
    }
    $GLOBALS['_boost_cache_this'] = TRUE;
    register_shutdown_function('_boost_ob_handler');
    ob_start();
DIMSKK’s picture

Hi,

Thanks a lot for help. It just worked perfectly!

Thanks
DIMSKK

sunflower’s picture

Subscribing

W.M.’s picture

Issue summary: View changes

I have couple of paths at my Drupal 7 site that are the same for both authenticated and unauthinticated users. I would like to serve the compressed and cached pages for those paths to authenticated users. My question is, how to achieve this under Drupal 7?

I use Nginx. Thanks.