function node_gallery_api_clear_gallery_caches in Node Gallery 7
Clears all the caches for a specific gallery.
Parameters
int $ngid: The nid of the gallery to clear caches on.
6 calls to node_gallery_api_clear_gallery_caches()
- NodeGalleryBehaviorHandler::NodeGalleryRelationshipCrud in plugins/
entityreference/ behavior/ NodeGalleryBehaviorHandler.class.php - Create, update or delete Node Gallery relationships based on field values.
- node_gallery_api_batch_sorting_finished in ./
node_gallery_api.inc - Batch API sorting finished callback.
- node_gallery_api_node_insert in ./
node_gallery_api.module - Implements hook_node_insert().
- node_gallery_api_node_update in ./
node_gallery_api.module - Implements hook_node_update().
- node_gallery_api_sort_items_form_remove_weights_submit in ./
node_gallery_api.pages.inc - Submit function to reset all image weights in a gallery to 0, effectively removing any custom sort.
File
- ./
node_gallery_api.inc, line 251 - Node Gallery API function
Code
function node_gallery_api_clear_gallery_caches($ngid) {
cache_clear_all('node_gallery:' . $ngid, 'cache', TRUE);
}