public function StaticCache::isCacheEmpty in Tome 8
Checks if the cache is empty.
Return value
bool Whether or not the cache is empty.
Overrides StaticCacheInterface::isCacheEmpty
File
- modules/
tome_static/ src/ StaticCache.php, line 66
Class
- StaticCache
- Determines if pages are statically cached.
Namespace
Drupal\tome_staticCode
public function isCacheEmpty() {
$this
->ensureBinExists();
$count = $this->connection
->select($this->bin)
->fields($this->bin, [
'cid',
])
->countQuery()
->execute()
->fetchField();
return empty($count);
}