You are here

protected function PdoProfilerStorage::cleanup in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-kernel/Profiler/PdoProfilerStorage.php \Symfony\Component\HttpKernel\Profiler\PdoProfilerStorage::cleanup()
1 call to PdoProfilerStorage::cleanup()
PdoProfilerStorage::write in vendor/symfony/http-kernel/Profiler/PdoProfilerStorage.php
Saves a Profile.

File

vendor/symfony/http-kernel/Profiler/PdoProfilerStorage.php, line 148

Class

PdoProfilerStorage
Base PDO storage for profiling information in a PDO database.

Namespace

Symfony\Component\HttpKernel\Profiler

Code

protected function cleanup() {
  $db = $this
    ->initDb();
  $this
    ->exec($db, 'DELETE FROM sf_profiler_data WHERE created_at < :time', array(
    ':time' => time() - $this->lifetime,
  ));
  $this
    ->close($db);
}