Parcourir la source

[FileCache] Change parameters to lower-case

This prevents creating multiple cache files for the same request.
logmanoriginal il y a 8 ans
Parent
commit
5639b158e7
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      caches/FileCache.php

+ 1 - 1
caches/FileCache.php

@@ -55,7 +55,7 @@ class FileCache implements CacheInterface {
 	* @return self
 	*/
 	public function setParameters(array $param){
-		$this->param = $param;
+		$this->param = array_map('strtolower', $param);
 
 		return $this;
 	}