Hello,

First off, thanks very much for this module. It's extremely useful for fine grained control over the block caching mechanism.
I think i've misunderstood the settings probably but here's my case

- i have a block on the frontpage which is of type "Full PHP Code" which invokes a function to generate the content and it takes close to 5 to 6 seconds to load.

- to reduce the load time, i installed this module and in the block configuration "Cache Settings" i selected "Cache setting: Cache once for everything (global)"

now, the page loads are quick due to the block being cached. however, this works only for an anonymous user. if i login as admin (user id 1) or any authenticated user and keep opening the frontpage in a new tab, it does not load the content from the cache.

so my query is, Is "Cache setting: Cache once for everything (global)" only meant for anonymous user ?
if so, what do i need to do to enable it for all users ? should i choose "Per User" for cache setting ?

Appreciate any input on the above cache setting.

Thanks.

Yashesh Bhatia.

Comments

swentel’s picture

Status: Active » Fixed
scotwith1t’s picture

Title: "Cache setting: Cache once for everything (global)" - Help understanding it » Help understanding the implications of the various options
Status: Fixed » Active

I'm certain we will be using this, given the recommendations out there, but instead of opening a new issue, I thought it best to re-use this one. Can you take it a step further and explain the implications of these options? I want to be certain to set each block's setting appropriately.

  • Per Page
  • Per role
  • Per role per page
  • Per user
  • Per user per page

Thanks very much.

swentel’s picture

Status: Active » Closed (works as designed)

See http://api.drupal.org/api/drupal/modules--block--block.module/6 - the constants are defined on that page.