function img_assist_cache_clear in Image Assist 6.2
Same name and namespace in other branches
- 5.3 img_assist.module \img_assist_cache_clear()
- 5 img_assist.module \img_assist_cache_clear()
- 5.2 img_assist.module \img_assist_cache_clear()
- 6 img_assist.module \img_assist_cache_clear()
Menu callback; clears relevant caches, then redirects to the previous page.
See also
1 string reference to 'img_assist_cache_clear'
- img_assist_menu in ./
img_assist.module - Implementation of hook_menu().
File
- ./
img_assist.module, line 550 - Image Assist module
Code
function img_assist_cache_clear() {
// clear core tables
$core = array(
'cache_filter',
'cache_page',
);
foreach ($core as $table) {
cache_clear_all('*', $table, TRUE);
}
drupal_set_message('Cache cleared.');
drupal_goto('admin/settings/img_assist');
}