You are here

function node_gallery_clear_gallery_caches in Node Gallery 6.3

Clears all the caches for a specific gallery.

Parameters

$gid: The nid of the gallery to clear caches on.

8 calls to node_gallery_clear_gallery_caches()
node_gallery_batch_sorting_finished in ./node_gallery.inc
node_gallery_nodeapi in ./node_gallery.module
Implements hook_nodeapi().
node_gallery_set_image_weight in ./node_gallery.inc
Sets the weight on an image node.
node_gallery_sort_images_form_remove_weights_submit in ./node_gallery.pages.inc
Submit function to reset all image weights in a gallery to 0, effectively removing any custom sort.
node_gallery_sort_view_submit in ./node_gallery.module

... See full list

File

./node_gallery.inc, line 561
Shared functions for node_gallery

Code

function node_gallery_clear_gallery_caches($gid) {

  // watchdog('node_gallery', 'Clearing caches for gallery with node id !gid.', array('!gid' => $gid), WATCHDOG_INFO, l(t('view gallery'), 'node/'. $gid));
  cache_clear_all('node_gallery:' . $gid, 'cache', TRUE);
}