When page caching is turned on during automated test runs (see #606840-118: Enable internal page cache by default) some of the failures are in the following test cases: CommentAnonymous, CommentBlockFunctionalTest, CommentInterfaceTest, ContactPersonalTestCase, ContactSitewideTestCase

These appear to be due to Drupal not clearing caches appropriately when a role's permissions change (in particular, when the anonymous user's permissions change).

Since changing permissions doesn't happen frequently and tends to affect a large number of pages of the site at once when it does, it's worth investigating whether we should do a cache_clear_all() when role permissions change (or at least when anonymous user permissions change).

Comments

David_Rothstein created an issue.