/**
  * used to set geoPath status to inactive, when has too small amount of caches,
  * etc.
  */
 public function cleanPowerTrailsCronjob()
 {
     $getPtQuery = 'SELECT * FROM `PowerTrail` WHERE `status` =1';
     $db = OcDb::instance();
     $s = $db->simpleQuery($getPtQuery);
     $ptToClean = $db->dbResultFetchAll($s);
     foreach ($ptToClean as $dbRow) {
         $powerTrail = new PowerTrail(array('dbRow' => $dbRow));
         $powerTrail->setPowerTrailConfiguration($this->config)->checkCacheCount();
         if (!$powerTrail->disableUncompletablePt($this->serverUrl)) {
             $powerTrail->disablePowerTrailBecauseCacheCountTooLow();
         }
     }
     $this->archiveAbandonPowerTrails();
     $this->freeCacheCandidates();
 }