Page MenuHomestyx hydra

DifferentialParseCacheGarbageCollector.php
No OneTemporary

DifferentialParseCacheGarbageCollector.php

<?php
final class DifferentialParseCacheGarbageCollector
extends PhabricatorGarbageCollector {
const COLLECTORCONST = 'differential.parse';
public function getCollectorName() {
return pht('Differential Parse Cache');
}
public function getDefaultRetentionPolicy() {
return phutil_units('14 days in seconds');
}
protected function collectGarbage() {
$table = new DifferentialChangeset();
$conn_w = $table->establishConnection('w');
queryfx(
$conn_w,
'DELETE FROM %T WHERE dateCreated < %d LIMIT 100',
DifferentialChangeset::TABLE_CACHE,
$this->getGarbageEpoch());
return ($conn_w->getAffectedRows() == 100);
}
}

File Metadata

Mime Type
text/x-php
Expires
Thu, Feb 6, 1:18 AM (8 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33714
Default Alt Text
DifferentialParseCacheGarbageCollector.php (682 B)

Event Timeline