DrupalCacheInterface::clear
function DrupalCacheInterface::clear
DrupalCacheInterface::clear($cid = NULL, $wildcard = FALSE)
Expires data from the cache.
If called without arguments, expirable entries will be cleared from the cache_page and cache_block bins.
Parameters
$cid: If set, the cache ID or an array of cache IDs. Otherwise, all cache entries that can expire are deleted. The $wildcard argument will be ignored if set to NULL.
$wildcard: If TRUE, the $cid argument must contain a string value and cache IDs starting with $cid are deleted in addition to the exact cache ID specified by $cid. If $wildcard is TRUE and $cid is '*', the entire cache is emptied.
File
- includes/cache.inc, line 292
- Functions and interfaces for cache handling.
Class
- DrupalCacheInterface
- Defines an interface for cache implementations.
Code
function clear($cid = NULL, $wildcard = FALSE);
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!cache.inc/function/DrupalCacheInterface::clear/7.x