Source of file GitonomyCache.php
Size: 0,424 Bytes - Last Modified: 2021-12-23T10:29:15+00:00
/var/www/docs.ssmods.com/process/src/code/model/GitonomyCache.php
1234567891011121314151617 | <?php /** * Helper class caching expensive gitonomy calls */ class GitonomyCache { public static $cache = array(); public static function getIncludingBranches($commit) { $cacheKey = 'getIncludingBranches-' .$commit->getRepository()->getPath() . '-' . $commit->gethash(); if(!isset(self::$cache[$cacheKey])) { self::$cache[$cacheKey] = $commit->getIncludingBranches(); } return self::$cache[$cacheKey]; } } |