我想知道,我有这个大数组,是否可以只在内存中使用一次而不是每个线程一次? 以 stackoverflow 上的标签为例。 他们几乎从不改变,为什么不为他们留下一个内存点呢? 甚至可能将该数组永久保存在内存中?
最佳答案
Unlike many other mechanisms in PHP, variables stored using apc_store() will persist between requests (until the value is removed from the cache).
关于php super super 全局变量,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6182312/