function views_object_cache_clear in Views (for Drupal 7) 6.2
Same name and namespace in other branches
- 6.3 includes/cache.inc \views_object_cache_clear()
Remove an object from the non-volatile Views cache
Parameters
$obj: A 32 character or less string to define what kind of object is being stored; primarily this is used to prevent collisions.
$name: The name of the view (or other object) being stored.
Related topics
5 calls to views_object_cache_clear()
- views_object_cache_set in includes/
cache.inc - Store an object in the non-volatile Views cache.
- views_revert_view in ./
views_revert.drush.inc - Revert a specified view
- views_ui_delete_confirm_submit in includes/
admin.inc - Submit handler to delete a view.
- views_ui_edit_view_form_cancel in includes/
admin.inc - Submit handler for the edit view form.
- views_ui_edit_view_form_submit in includes/
admin.inc - Submit handler for the edit view form.
File
Code
function views_object_cache_clear($obj, $name) {
db_query("DELETE FROM {views_object_cache} WHERE sid = '%s' AND obj = '%s' AND name = '%s'", session_id(), $obj, $name);
}