Indefero

Indefero Commit Details


Date:2010-10-04 10:42:21 (14 years 2 months ago)
Author:Thomas Keller
Branch:develop, feature-issue_links, feature.better-home, feature.content-md5, feature.diff-whitespace, feature.download-md5, feature.issue-links, feature.issue-of-others, feature.issue-summary, feature.search-filter, feature.webrepos, feature.wiki-default-page, master, release-1.1, release-1.2, release-1.3
Commit:97ea828532c564563fcd7ac45551befb1fa4cd98
Parents: d539eaf64bda988d44334a8f0e06321e0d221a71
Message:Use a persistent cache through Pluf_Cache to speed up cert queries.

Changes:

File differences

src/IDF/Scm/Monotone.php
157157
158158
159159
160
161
162
160
161
162
163
164
163165
164166
165167
......
183185
184186
185187
186
188
187189
188190
189
191
190192
191193
192194
*/
private function _getCerts($rev)
{
static $certCache = array();
if (!array_key_exists($rev, $certCache)) {
$cache = Pluf_Cache::factory();
$cachekey = 'mtn-plugin-certs-for-rev-' . $rev;
$certs = $cache->get($cachekey);
if ($certs === null) {
$out = $this->stdio->exec(array('certs', $rev));
$stanzas = IDF_Scm_Monotone_BasicIO::parse($out);
}
}
}
$certCache[$rev] = $certs;
$cache->set($cachekey, $certs);
}
return $certCache[$rev];
return $certs;
}
/**

Archive Download the corresponding diff file

Page rendered in 0.08492s using 13 queries.