Drupal Authcache thrifty caching
If you successfully installed Authcache you might be think: "Why I need a separate caching for my authenticated user and customer? There is no difference on site."
You are right. Separate cache is used for different user roles. And if you want all your logged in users to use same cache and save some hardware resources then I can help you. Just create a small custom module and paste code below. It allow to generate same cache ID for different roles.
/** * Modify the properties used to calculate the authcache key. * * @see authcache_key_properties() * @see authcache_key() */ function YOUR_MODULE_NAME_authcache_key_properties_alter(&$properties) { // create cache key for all logged in users (except uid=1) if (isset($properties['roles'])) unset($properties['roles']); }










