Phalcon 4.x 创建多个文件夹来存储缓存数据。拥有递归和多个文件夹有什么好处?

Phalcon 4.x creates multiple folders to store cached data. What is the benefit of having recursive and multiple folders?

$hash = '123456789';
$fileName = "test.{$hash}.html";

最终目录结构如下。

te/st/.1/23/45/67/test.123456789.html

它只是将文件名分解为两个字符的目录,留下路径中的最后 2 个字符 test.123456789

防止too many files in one folder错误。 另见 https://docs.phalcon.io/4.0/en/cache#stream