protected function PdoProfilerStorage::cleanup

1 call to PdoProfilerStorage::cleanup()
PdoProfilerStorage::write in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Profiler/PdoProfilerStorage.php
Saves a Profile.

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Profiler/PdoProfilerStorage.php, line 149

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);
}