Revmoing cache for viewing source (temporarily)

This commit is contained in:
Nathan Adams 2014-10-30 19:20:34 -05:00
parent 1944b5acc0
commit 9330e47398

View File

@ -156,13 +156,15 @@ class IDF_Views_Source
$in_branches = $scm->inBranches($commit, ''); $in_branches = $scm->inBranches($commit, '');
$tags = $scm->getTags(); $tags = $scm->getTags();
$in_tags = $scm->inTags($commit, ''); $in_tags = $scm->inTags($commit, '');
$cache = Pluf_Cache::factory(); // Cache may work only if we filter for "default" or "tip" commits
//$cache = Pluf_Cache::factory();
$res = new Pluf_Template_ContextVars($scm->getTree($commit));
$key = sprintf('Project:%s::IDF_Views_Source::treeBase:%s::', $key = sprintf('Project:%s::IDF_Views_Source::treeBase:%s::',
$request->project->id, $commit); $request->project->id, $commit);
if (null === ($res=$cache->get($key))) { /*if (null === ($res=$cache->get($key))) {
$res = new Pluf_Template_ContextVars($scm->getTree($commit));
$cache->set($key, $res); $cache->set($key, $res);
} }*/
$scmConf = $request->conf->getVal('scm', 'git'); $scmConf = $request->conf->getVal('scm', 'git');
$props = $scm->getProperties($commit); $props = $scm->getProperties($commit);
$res->uasort(array('IDF_Views_Source', 'treeSort')); $res->uasort(array('IDF_Views_Source', 'treeSort'));