You are here

function hook_og_invalidate_cache in Organic groups 7.2

Same name and namespace in other branches
  1. 7 og.api.php \hook_og_invalidate_cache()

Act upon organic groups cache clearing.

This can be used by implementing modules, that need to clear the cache as-well.

1 function implements hook_og_invalidate_cache()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

og_context_og_invalidate_cache in og_context/og_context.module
Implements hook_og_invalidate_cache().
1 invocation of hook_og_invalidate_cache()
og_invalidate_cache in ./og.module
Invalidate cache.

File

./og.api.php, line 229
Hooks provided by the Organic groups module.

Code

function hook_og_invalidate_cache($gids = array()) {
  $caches = array(
    'og_foo',
    'og_bar',
  );
  foreach ($caches as $cache) {
    drupal_static_reset($cache);
  }
}