Indefero

Indefero Commit Details


Date:2009-05-27 11:04:33 (15 years 6 months ago)
Author:Loic d'Anterroches
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:6ef721d3a8f4e5d3c410f3076049518da0834a61
Parents: 7d84da4d7cee5d3e59b543a2eb0c908db1900015
Message:Fixed to sync the timeline only if the backend is available.

Changes:

File differences

src/IDF/Scm.php
343343
344344
345345
346
347
346
347
348
349
350
348351
349
350352
351353
352354
$key = 'IDF_Scm:'.$project->shortname.':lastsync';
if (null === ($res=$cache->get($key))) {
$scm = IDF_Scm::get($project);
foreach ($scm->getChangeLog($scm->getMainBranch(), 25) as $change) {
IDF_Commit::getOrAdd($change, $project);
if ($scm->isAvailable()) {
foreach ($scm->getChangeLog($scm->getMainBranch(), 25) as $change) {
IDF_Commit::getOrAdd($change, $project);
}
$cache->set($key, true, (int)(Pluf::f('cache_timeout', 300)/2));
}
$cache->set($key, true, (int)(Pluf::f('cache_timeout', 300)/2));
}
}
}

Archive Download the corresponding diff file

Page rendered in 0.08073s using 13 queries.