WP Cache Block
WP Cache and some other caching plugins work amazingly well, however, their benefits are limited in sites with a large percentage of logged in users. While working on these projects, we, Voce Connect, found the need for…
Envisager une alternative
WP Cache Block shows warning signs in 2026 — compare the alternatives below before installing. It runs on 10+ sites and was last updated 16 years ago, and scores 23/100 on our health check.
- Petite base d'utilisateurs (plus de 10 installations actives)
- Très peu de critiques jusqu'à présent
- Pas de mise à jour dans 15 ans
- Uniquement testé jusqu'à WordPress 3,0 (le dernier est de 7,1)
Comment s'accumule-t-il ?
Côte à côte sur les installations, les mises à jour, les évaluations et le supportTéléchargements quotidiens
Les pics de téléchargement suivent généralement une nouvelle version - chaque site qui met à jour automatiquement compte comme un téléchargement.
Classements
Where WP Cache Block stands todayWordPress.org Classements de recherche
Position en direct dans la recherche de plugins, Top 100| Mot-clé | Position |
|---|---|
| cachette | >100 |
| cache block | >100 |
| mise en cache | >100 |
| output caching | >100 |
| performance | >100 |
Adoption de version
Part de sites actifs par version.
About WP Cache Block
From the official readme · v0.1.1Description
Adds ability to globally cache certain segments of code.
WP Cache and some other caching plugins work amazingly well, however, their benefits are limited in sites with a large percentage of logged in users. While working on these projects, we, Voce Connect, found the need for a better caching solution. We needed to easily cache rendered portions of the theme that were the same for each user without caching other portions that may have user specific content. The solution was to come up with a plugin that could be easily integrated into a theme to help cache these blocks of content.
Exigences :
- WordPress 2.8 or higher
- “php5” – I’m a big proponent of dropping the php4 compatibility of WordPress due to the improved OO support. Because of this, I prefer to write my plugins in php5 form in hopes to help push the community along.
Installation
- Télécharger le dossier
wp-cache-blockdans le répertoire/wp-content/plugins/ - Activez le plugin via le menu « Plugins » dans WordPress
- Add cache block areas to the slower parts of your theme. See below.
Adding a cache block only requires wrapping the section of content you want to cache in a couple of lines of code. The key is make sure that the cache block is uniquely idtentified based on the content it will render.
For simple content that is the same on every page:
<?php if(wp_cacheblock_start('my-content')) : ?>
//the content you want to cache
<?php endif; wp_cacheblock_end(); ?>
Content that varies based on page, user, etc, will need to use key builders. Key builders are simple classes that help make a unique key for the block of content based on different parameters.
For caching the_loop in index.php you’ll need to add a Query_Unique_Key_Builder which creates a key based on passed in query_var keys:
<?php $key_builders = array(new Query_Unique_Key_Builder( array ('paged') ) );
<?php if(wp_cacheblock_start( 'index-loop', array('key_builders'=> $key_builders) ) ) : ?>
//the post loop
<?php endif; wp_cacheblock_end(); ?>
To cache the comment output, you can use the Pending_Comment_Unique_Key_Builder so users with pending comments will get their own cached page.
<?php $key_builders = array( new Pending_Comment_Unique_Key_Builder() );
<?php if(wp_cacheblock_start('index-loop', array('key_builders'=> $key_builders) ) ) : ?>
//the comment loop
<?php endif; wp_cacheblock_end(); ?>
If you’re having to render complex data per user, the Per_User_Unique_Key_Builder will help create a unique key per user for the content:
<?php $key_builders = array( new Per_User_Unique_Key_Builder() );
<?php if(wp_cacheblock_start('index-loop', array('key_builders'=> $key_builders) ) ) : ?>
//the user specific content
<?php endif; wp_cacheblock_end(); ?>
Journal de modifications
0.1.1
- Limited transient key length to 45 chars per https://core.trac.wordpress.org/ticket/15058
- Fixing unique key when only a block name is provided.
0.1.0
- Version initiale.
Pour les développeurs
Est-ce votre plugin ? Montrez les chiffres.
Ajoutez un badge en direct à votre site, docs ou github readme. Il se met à jour par lui-même - aucun compte n'est nécessaire.
Best WP Cache Block alternatives
Tous les plugins de cache →FAQ
WP Cache Block: quick answers
Réponses directes, extraites des données en direct WordPress.org.
Source : WordPress.org
Is WP Cache Block free?
Yes. WP Cache Block is free to download and use from the official WordPress.org plugin directory.
Is WP Cache Block safe to use in 2026?
WP Cache Block shows warning signs in 2026 — compare the alternatives below before installing. It runs on 10+ sites and was last updated 16 years ago, and scores 23/100 on our health check.
How many websites use WP Cache Block?
WP Cache Block is active on 10+ WordPress websites and has been downloaded 4,418 times since it launched in June 2010. It was downloaded 44 times in the last 30 days.
Does WP Cache Block work with WordPress 7.1?
WP Cache Block is officially tested up to WordPress 3.0.5, while the latest release is 7.1.5. It may still work, but try it on a staging site first.
When was WP Cache Block last updated?
The latest version, 0.1.1, was released on February 14, 2011 (16 years ago).
Who makes WP Cache Block?
WP Cache Block is developed and maintained by prettyboymp.
What are the best alternatives to WP Cache Block?
The most popular alternatives to WP Cache Block are WP Super Cache (1M+ installs), WP Fastest Cache (1M+ installs) and WP-Optimize (1M+ installs).
Propulsé par PageForge
Un modèle et une feuille de calcul. Une vraie page pour chaque recherche.
PageForge transforme chaque ligne d'un CSV en une page WordPress avec son propre titre, URL, SEO et schéma, construit sur la mise en page que vous Déjà conçu. Gratuit sur WordPress.org.
- CSV et XLSX, plus Google Sheets sur les professionnels et les entreprises
- Son propre titre, URL, SEO champs et schéma pour chaque page
- Fonctionne avec l'éditeur de blocs, Elementor, Divi et Avada
- Gratuit sur WordPress.org, pas de carte de crédit
