function gallery_assist_clearthecache in Gallery Assist 6
Clear the Gallery Assist cache table.
3 calls to gallery_assist_clearthecache()
- gallery_assist_standard_sort_submit in ./
gallery_assist.module - gallery_assist_update_3 in ./
gallery_assist.install - Implementation of hook_update_N().
- gallery_assist_update_4 in ./
gallery_assist.install - Implementation of hook_update_N().
1 string reference to 'gallery_assist_clearthecache'
- gallery_assist_settings_extras in ./
gallery_assist.admin.inc - Build the tab with extra settings for Gallery Assist. It is used to display some general settings and the forms from the submodules.
File
- ./
gallery_assist.module, line 5494 - Drupal content type with gallery functionality.
Code
function gallery_assist_clearthecache($nid = 0) {
if ($nid > 0) {
db_query("DELETE FROM {cache_gallery_assist_data} WHERE cid = '%s'", $nid);
}
else {
$cq = "TRUNCATE TABLE {cache_gallery_assist_data}";
db_query($cq);
}
$form_state['redirect'] = '/admin/settings/gallery_assist/extras';
drupal_set_message('Gallery Assist Cache cleared');
}