Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当 APCu 缓存空间已满时,APC 会简单地将其清除所有数据,以重新获得空闲缓存空间。
有没有一种 PHP 方法可以知道何时发生这种情况?
缓存一些专用的缓存标签(“cached”=>“yes”,longlastingvalidity)并检查它是否仍然存在。当它不再存在时:缓存已被刷新。