cache_is_empty

Versions
7
cache_is_empty($bin)

Check if a cache bin is empty.

A cache bin is considered empty if it does not contain any valid data for any cache ID.

Parameters

$bin The cache bin to check.

Return value

TRUE if the cache bin specified is empty.

Code

includes/cache.inc, line 183

<?php
function cache_is_empty($bin) {
  return _cache_get_object($bin)->isEmpty();
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.