srchub

srchub Commit Details


Date:2014-10-30 19:20:34 (10 years 6 months ago)
Author:Natalie Adams
Branch:master
Commit:9330e47398e81831e79a0f6a370b229afe9b3fef
Parents: 1944b5acc02aeea842a4d7b751356436cc47cf8f
Message:Revmoing cache for viewing source (temporarily)

Changes:

File differences

indefero/src/IDF/Views/Source.php
156156
157157
158158
159
159
160
161
160162
161163
162
163
164
165
164166
165
167
166168
167169
168170
        $in_branches = $scm->inBranches($commit, '');
        $tags = $scm->getTags();
        $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::',
                       $request->project->id, $commit);
        if (null === ($res=$cache->get($key))) {
            $res = new Pluf_Template_ContextVars($scm->getTree($commit));
        /*if (null === ($res=$cache->get($key))) {
           
            $cache->set($key, $res);
        }
        }*/
        $scmConf = $request->conf->getVal('scm', 'git');
        $props = $scm->getProperties($commit);
        $res->uasort(array('IDF_Views_Source', 'treeSort'));

Archive Download the corresponding diff file

Branches

Number of commits:
Page rendered in 0.21149s using 14 queries.