1.20.x cache_database.inc BackdropDatabaseCache::garbageCollection()

Implements BackdropCacheInterface::garbageCollection().

Overrides BackdropCacheInterface::garbageCollection

File

drivers/cache_database/cache_database.inc, line 163

Class

BackdropDatabaseCache
Defines a default cache implementation.

Code

function garbageCollection() {
  db_delete($this->bin)
    ->condition('expire', CACHE_PERMANENT, '<>')
    ->condition('expire', REQUEST_TIME, '<')
    ->execute();
}