Indefero

Indefero Commit Details


Date:2009-01-23 08:06:57 (16 years 3 months ago)
Author:Loic d'Anterroches
Branch:dev, 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:38ac214d554ad62350318bb66b193aae9c495c14
Parents: 657dd339a1036c7dd1bd7388710e5d6fec3471be
Message:Fixed bug in the cache resulting in errors in the tree view.

The cache was not per project but one cache for all the projects.
Changes:

File differences

src/IDF/Views/Source.php
112112
113113
114114
115
115
116
116117
117118
118119
......
183184
184185
185186
186
187
188
187189
188190
189191
            return new Pluf_HTTP_Response_Redirect($url);
        }
        $cache = Pluf_Cache::factory();
        $key = 'IDF_Views_Source::treeBase:'.$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->filesAtCommit($commit));
            $cache->set($key, $res);
        $tree_in = in_array($commit, $branches);
        try {
            $cache = Pluf_Cache::factory();
            $key = 'IDF_Views_Source::tree:'.$commit.'::'.$request_file;
            $key = sprintf('Project:%s::IDF_Views_Source::tree:%s::%s',
                           $request->project->id, $commit, $request_file);
            if (null === ($res=$cache->get($key))) {
                $res = new Pluf_Template_ContextVars($scm->filesAtCommit($commit, $request_file));
                $cache->set($key, $res);

Archive Download the corresponding diff file

Page rendered in 0.20755s using 13 queries.