You are here

function session_cache_cron in Session Cache API 8

Same name and namespace in other branches
  1. 6 session_cache.module \session_cache_cron()

Implements hook_cron().

File

./session_cache.module, line 105
session_cache.module

Code

function session_cache_cron() {
  if (config('session_cache.settings')
    ->get('storage_method') == SESSION_CACHE_STORAGE_DB_CORE) {

    // Don't believe we need to do anything. When a cache item has expired,
    // after the time provided in the cache()->set() call, the item is up for
    // grabs by the garbage collector at any time.
    return;
  }
}