Yac Object Cache
Yac (lock-free shared memory) backed object cache for WordPress. Zero external servers, zero network round trips.
Escolha sólida
Yac Object Cache is a solid plugin choice in 2026, with a few things worth checking first. It runs on 10+ sites, is rated 5/5 and was last updated 3 days ago, and scores 62/100 on our health check.
- Desenvolvido ativamente — última atualização 3 dias atrás
- Testado com as últimas WordPress (7.1)
- Pequena base de usuários (10+ instalações ativas)
- Muito poucos comentários até agora
Como ele se acumula?
Lado a lado em instalações, atualizações, avaliações e suporteDownloads diários
Os picos de download geralmente seguem uma nova versão — cada site que atualiza automaticamente é um download.
Rankings
Where Yac Object Cache stands todayWordPress.org Classificações de pesquisa
Posição ao vivo na pesquisa de plugins, top 100| Palavra chave | Posição |
|---|---|
| esconderijo | >100 |
| object cache | #29 |
| execução | >100 |
| shared memory | #19 |
| yac | #1 |
Adoção da versão
Compartilhamento de sites ativos por lançamento.
Divisão de classificação
★★★★★ ★★★★★ 5 de 1 comentários
About Yac Object Cache
From the official readme · v1.4.2Descrição
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.
Instalação
-
Install the Yac extension, any of three ways (then enable
extension=yac.soin php.ini):PECL
pecl install yac
PIE (the PHP Foundation’s PECL successor; yac is on Packagist)
pie install laruence/yac
Or from source: download the latest release, unzip it, then inside:
phpize && ./configure && make && make install
- Install and activate Yac Object Cache. Activation deploys
wp-content/object-cache.php.
That is it — no wp-config edit needed. Visit Tools → Yac Object Cache to verify status.
Optional php.ini tuning
yac.enable = 1
yac.keys_memory_size = 16M ; ~128K slots (~32K per 4M)
yac.values_memory_size = 64M ; raise for large sites (big alloptions)
Optional wp-config switches
define( 'YAC_OCACHE_KEY_PREFIX', 'wp' ); // default; give each install its own prefix when sites share one PHP pool
define( 'YAC_OCACHE_EMPTY_TTL', 21600 ); // default: cap empty negative-cache results at 6 hours; 0 disables
Log de Changes
1.4.2
- Tested up to WordPress 7.2.
1.4.1
- Added Yac 3.0 compatibility for the cache inspector, including value location metadata; Yac 2.x behavior remains supported.
- Fixed reported values-pool occupancy so it never exceeds the configured pool size after Yac recycles memory.
1.4.0
- Multisite: blogs of one install are now isolated. The Yac instance prefix becomes
YAC_OCACHE_KEY_PREFIX+ the current blog id (ids up to 9999 verbatim, larger ids a 4-hex crc32b digest) andswitch_to_blog()re-namespaces, so one blog can no longer read another blog’s cached entries (the menu/duplication reports on shared namespaces). Single-site behavior is unchanged; upgrading is a one-time cold start. - Multisite admin: the diagnostics now match that isolation. Cache-status totals stay machine-wide, but shared-memory contents, the group pie and the entry inspector/delete are scoped to the current blog (the contents heading is titled with the blog name), so a site admin can no longer read or delete another blog’s entries. The flush confirmation now also notes that Yac recycles expired memory on its own, so a manual flush is rarely needed.
1.3.1
- Fixed the admin “Remove drop-in” action always reporting failure.
- Added WP-CLI commands:
wp yac deploy-dropin,wp yac update-dropin,wp yac remove-dropin. - Comment-query cache misses (
WP_Comment_Query::get_comments()wraps an empty result asarray('comment_ids' => array(), 'found_comments' => 0)) are now recognized as negative cache results and capped byYAC_OCACHE_EMPTY_TTLinstead of occupying a slot forever.
1.3.0
- No wp-config edit is needed any more:
WP_CACHEis no longer required or reported. WordPress loadsobject-cache.phpregardless of it — that constant only gatesadvanced-cache.php(page caching), which this plugin does not provide. The live CI run now boots WordPress without it to prove the point. - The Cache health panel became a client-side trend chart: hit rate, hits and misses over Today / Yesterday / Last 7 days, with the window’s counters and the capacity diagnosis on hover. Counters are sampled every 15 minutes into a ~7-day ring.
- Fixed the entry inspector exhausting the PHP memory limit on a busy cache: it now pages through
Yac::dump()instead of accumulating the whole dump. - Fixed the dashboard widget reporting “0 bytes” for values occupied. The Active bar now also shows shared-memory uptime.
- Suggested tuning raised to
yac.keys_memory_size = 16M(~128K slots); 4M gives only ~32K.
1.2.2
- Fixed stale shared-memory writes:
wp_cache_set()on a key already written bywp_cache_add()in the same request skipped the shared write, so other requests kept reading the value the add stored (theupdate_option()pattern left the old option behind). - Replaced
YAC_OCACHE_SKIP_EMPTYwithYAC_OCACHE_EMPTY_TTL(default 21600s): empty results now share as usual but expire instead of occupying a slot forever. - The health panel’s “keys used” reports live entries rather than the
slots_usedhigh-water mark.
Capturas de tela
Para desenvolvedores
Este é o seu plugin? Mostre os números.
Adicione um crachá ao vivo ao seu site, Documentos ou Readme do GitHub. Ele é atualizado por conta própria - nenhuma conta necessária.
Best Yac Object Cache alternatives
Todos os plugins de cache →FAQ
Yac Object Cache: quick answers
Respostas diretas, extraídas de dados ao vivo WordPress.org.
Fonte: WordPress.org
Is Yac Object Cache free?
Yes. Yac Object Cache is free to download and use from the official WordPress.org plugin directory.
Is Yac Object Cache safe to use in 2026?
Yac Object Cache is a solid plugin choice in 2026, with a few things worth checking first. It runs on 10+ sites, is rated 5/5 and was last updated 3 days ago, and scores 62/100 on our health check.
How many websites use Yac Object Cache?
Yac Object Cache is active on 10+ WordPress websites and has been downloaded 630 times since it launched in September 2026. It was downloaded 175 times in the last 30 days.
Does Yac Object Cache work with WordPress 7.1?
Yes. The developer has tested Yac Object Cache up to WordPress 7.2, the latest release. It requires WordPress 5.6 or newer.
What PHP version does Yac Object Cache need?
Yac Object Cache requires PHP 7.0 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was Yac Object Cache last updated?
The latest version, 1.4.2, was released on November 26, 2026 (3 days ago).
Who makes Yac Object Cache?
Yac Object Cache is developed and maintained by laruence.
What are the best alternatives to Yac Object Cache?
The most popular alternatives to Yac Object Cache are WP Super Cache (1M+ installs), WP Fastest Cache (1M+ installs) and WP-Optimize (1M+ installs).
Alimentado por PageForge
Um modelo e uma planilha. Uma página real para cada pesquisa.
PageForge Transforma cada linha de um CSV em uma página WordPress com seu próprio título, URL, SEO campos e esquema, construído no layout que você já desenhou. Gratuito em WordPress.org.
- CSV e XLSX, mais Google Sheets em Profissional e Empresarial
- Seu próprio título, URL, SEO campos e esquema para cada página
- Funciona com o editor de blocos, Elementor, Divi e Avada
- Gratuito em WordPress.org, sem cartão de crédito
