1

I have a website that is only available to logged in users, I want to increase performance with boost by caching pages for authenticated users would i just edit the code above?

http://drupal.org/node/509694

here it says this code is what prevents boost from caching for logged in users

<?php
  // For authenticated users, set a special cookie to prevent them
  // inadvertently getting served pages from the static page cache.
  if (!empty($user->uid)) {
    boost_set_cookie($user);
  }

1 Answer 1

1

No, because it will break your site for logged in users. Try Authcache module instead.

3
  • do i need to have memcache or APC installed on my server for this to work?
    – albo
    Mar 28, 2013 at 16:58
  • No - "By default, Authcache will use the cache_page table to store cached pages."
    – user11153
    Mar 28, 2013 at 17:03
  • But memcached reduces number of queries drastically, And thus it's a huge performance enhancement.
    – hkoosha
    Jun 4, 2014 at 20:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.