function cache_is_empty

Checks 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.

1 call to cache_is_empty()
CacheIsEmptyCase::testIsEmpty in modules/simpletest/tests/cache.test
Test clearing using a cid.

File

includes/cache.inc, line 188

Code

function cache_is_empty($bin) {
    return _cache_get_object($bin)->isEmpty();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.