
內容簡介
Yac Object Cache 是一款高效能的快取外掛,透過共享記憶體來加速 PHP 工作進程的快取存取,無需額外的快取伺服器或網路連接,顯著提升網站性能。
【主要功能】
• 快速讀取:無需套接字或網路,提升處理速度
• 簡易操作:無需安裝或維護快取伺服器
• 健康監控:提供快取命中率及診斷資訊
• 軟性故障:可降級為每請求快取,保持網站運行
• 最佳適用:適合單節點或少數節點安裝環境
外掛標籤
開發者團隊
原文外掛簡介
Yac keeps the cache in a shared memory segment accessible to all PHP workers, so a read is a hash lookup in local memory — no cache server, no socket, no network.
Highlights
Fast. No socket, no network, no global lock, so throughput scales with workers. Yac’s own benchmark measured 13x-70x higher ops/s than APCu and 170x-730x higher than local Memcached, depending on value size. On the author’s own site (www.laruence.com) that translated to page renders coming out 19% faster than with the Memcached drop-in.
Nothing to operate. No cache server to install, secure, monitor or restart.
Health you can read. Hit rate, hits and misses charted over Today / Yesterday / Last 7 days, with a diagnosis that also says when not to add memory.
Fails soft. No extension, or yac.enable=0, degrades to a per-request cache and the site keeps serving.
Best fit
Single-node or few-node installs where all PHP workers share a machine. For multi-server clusters needing cross-node consistency, a network cache (Memcached/Redis) suits better.
