You are here

protected function MongoDbProfilerStorage::cleanup in Zircon Profile 8

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

File

vendor/symfony/http-kernel/Profiler/MongoDbProfilerStorage.php, line 156

Class

MongoDbProfilerStorage

Namespace

Symfony\Component\HttpKernel\Profiler

Code

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