ACLs & Block Cache
So I have a site that has both a forum section in which I'd like only logged in users to be able to post (comment) and an articles section in which I'd like anonymous users to be able to post. ACL + Forum Access seems to solve my problem, but disables the block cache. If I'm worried about performance, should this be a deal-breaker? Will other caching options be degraded by my lack of a block cache? Or will other high-performance options (CacheRouter is my planned solution) mask this problem?
Thanks in advance.
Groups:
Login or register to post comments
A lighter weight solution
A lighter weight solution might be to manage the comment restrictions with a hook_form_alter rather than node access. Generally you want to try to avoid node access wherever performance is a concern.
The reason that block caching is disabled when you have a node access system in place is that Drupal no longer knows if a block can be cached for your various roles. Perhaps only some people should see some of the content. However you know who should see what. So you can use the blockcache alter module to manually set caching on each block.
--
Dave Hansen-Lange
Web Developer
Advomatic LLC
Great White North Office
Canada