[HttpKernel] Changed the directory name in which Store stores data.

Previously, it used this pattern:

md/abcd/123456789

now it uses this one :

md/ab/cd/123456789
This commit is contained in:
marc.weistroff 2011-01-25 12:43:59 +01:00 committed by Fabien Potencier
parent 0e66e388ec
commit 90c16c7350

View File

@ -339,7 +339,7 @@ class Store
public function getPath($key)
{
return $this->root.DIRECTORY_SEPARATOR.substr($key, 0, 2).DIRECTORY_SEPARATOR.substr($key, 2, 4).DIRECTORY_SEPARATOR.substr($key, 4);
return $this->root.DIRECTORY_SEPARATOR.substr($key, 0, 2).DIRECTORY_SEPARATOR.substr($key, 2, 2).DIRECTORY_SEPARATOR.substr($key, 4, 2).DIRECTORY_SEPARATOR.substr($key, 6);
}
/**