You are here

function DrupalFileCache::isEmpty in File Cache 7

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.

Return value

TRUE if the cache bin specified is empty.

Overrides DrupalCacheInterface::isEmpty

File

./filecache.inc, line 568
DrupalFileCache class that implements DrupalCacheInterface.

Class

DrupalFileCache

Code

function isEmpty() {
  if (!$this->ok) {
    return FALSE;
  }
  return count($this
    ->all()) === 0;
}