You are here

function og_group_membership_invalidate_cache in Organic groups 7

Reset static cache related to group membership.

4 calls to og_group_membership_invalidate_cache()
OgGroupAudienceField::testHiddenSelectedGids in ./og.test
Test re-adding hidden and selected group IDs.
OgMembership::delete in ./og.module
Permanently deletes the entity.
OgMembership::save in ./og.module
Permanently saves the entity.
og_invalidate_cache in ./og.module
Invalidate cache.

File

./og.module, line 1034
Enable users to create and manage groups with roles and permissions.

Code

function og_group_membership_invalidate_cache() {
  $caches = array(
    'og_get_entity_groups',
    'og_get_group_membership',
  );
  foreach ($caches as $cache) {
    drupal_static_reset($cache);
  }
}