【问题标题】:Phalcon 4.x creates multiple folders to store cached data. What is the benefit of having recursive and multiple folders?Phalcon 4.x 创建多个文件夹来存储缓存数据。拥有递归和多个文件夹有什么好处?
【发布时间】:2020-02-20 06:46:54
【问题描述】:
$hash = '123456789';
$fileName = "test.{$hash}.html";

最终的目录结构如下。

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

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

【问题讨论】:

    标签: recursion caching directory phalcon


    【解决方案1】:

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

    【讨论】:

    • 谢谢,在文件路径中跳过至少 2 个字符的目的是什么?
    猜你喜欢
    • 2020-08-16
    • 1970-01-01
    • 2018-10-08
    • 1970-01-01
    • 2015-12-16
    • 1970-01-01
    • 2016-10-23
    • 1970-01-01
    • 2012-10-13
    相关资源
    最近更新 更多