protected function MongoDbProfilerStorage::cleanup

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

File

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

Class

MongoDbProfilerStorage

Namespace

Symfony\Component\HttpKernel\Profiler

Code

protected function cleanup() {
  $this
    ->getMongo()
    ->remove(array(
    'time' => array(
      '$lt' => time() - $this->lifetime,
    ),
  ));
}