コード例 #1
0
 /**
  * Generate a cache key for a LESS file.
  *
  * The cache key varies on the file name and the names and values of global
  * LESS variables.
  *
  * @since 1.22
  * @param string $fileName File name of root LESS file.
  * @return string: Cache key
  */
 protected static function getLESSCacheKey($fileName)
 {
     $vars = json_encode(ResourceLoader::getLESSVars());
     $hash = md5($fileName . $vars);
     return wfMemcKey('resourceloader', 'less', $hash);
 }