Linux 软件免费装
Banner图

Docket Cache - Object Cache Accelerator

开发者 nawawijamili
更新时间 2026年4月18日 03:53
捐献地址: 去捐款
PHP版本: 7.2.5 及以上
WordPress版本: 6.9
版权: MIT
版权网址: 版权信息

标签

cache performance database object cache OPcache

下载

26.04.04 21.01.01 21.02.06 21.02.07 20.12.04 21.02.02 21.08.04 24.07.01 21.02.05 21.08.02 21.08.07 21.08.08 21.08.01 21.08.03 21.08.05 21.08.09 21.08.11 22.07.03 24.07.02 21.08.10 21.02.03 21.02.04 21.02.08 21.08.06 22.07.02 22.07.04 22.07.05 21.02.01 23.08.02 26.04.03 23.08.01 22.07.01 24.07.03 24.07.06 24.07.04 24.07.05 24.07.07

详情介绍:

Docket Cache is a persistent WordPress Object Cache that stores cached data as plain PHP code. It is designed as an alternative for sites that do not have access to Redis or Memcached. Most file-based caching plugins use serializing and unserializing to save PHP objects to flat files. Docket Cache takes a different approach by converting objects into plain PHP code. This makes data retrieval faster and improves overall performance, especially when Zend OPcache is enabled. For more information, please refer to the documentation on Caching In WordPress.

安装:

Docket Cache requires PHP 7.2.5 or higher, WordPress 5.4 or higher, and Zend OPcache for best performance.
  1. In your WordPress admin, go to Plugins -> Add New.
  2. Search for "Docket Cache" and click Install Now.
  3. Click Activate or Network Activate for Multisite setups.
  4. Click Docket Cache in the left menu to access the settings page.
Please allow a few seconds for Docket Cache to begin caching objects.

屏幕截图:

  • Cache Log.
  • Cache view.
  • Cache content.
  • Cronbot.
  • Configuration.
  • Multisite / Multi-Network Overview.
  • Multisite / Multi-Network Cronbot.

升级注意事项:

Please do manually remove wp-content/object-cache.php and wp-content/cache/docket-cache if an error occurs during updates. Thanks.

常见问题:

What is Object Caching in WordPress?

Object caching stores database query results so they can be retrieved quickly the next time they are needed. Cached data is served directly from the cache rather than making repeated database queries. This reduces the load on your server and makes your site faster. In simple terms, object caching keeps frequently used data in a location where it can be accessed more quickly.

What is Docket Cache in Object Caching?

By default, the WordPress object cache is non-persistent. This means cached data is stored in memory only for the duration of a single page request. It is not kept between page loads. To make it persistent, the object cache must be stored on disk. Docket Cache does more than just store the object cache — it converts cached data into plain PHP code. This is faster because WordPress can use the cache directly without additional processing.

What is OPcache in Docket Cache?

OPcache is a caching engine built into PHP. It improves performance by storing precompiled script bytecode in shared memory, so PHP does not need to load and parse scripts on each request. Docket Cache converts the object cache into plain PHP code. When reading and writing cache data, it uses OPcache directly, which results in faster data retrieval and better performance.

What is the Cronbot Service in Docket Cache?

Cronbot is an external service that pings your website every hour to keep WordPress Cron running actively. This service is optional and is not required. By default, it is not connected to the end-point server. You can disable it entirely on the configuration page.

What is the Garbage Collector in Docket Cache?

The Garbage Collector is a scheduled event that runs every 5 minutes to monitor cache files, clean up expired entries, and collect statistics.

What is a RAM disk in Docket Cache?

A RAM disk uses your server's memory (RAM) to act as a storage drive. It can be a hardware device or a virtual disk. Reading and writing data from RAM is much faster than from an SSD. Storing Docket Cache files on a RAM disk can greatly improve performance. Please note that creating a RAM disk requires server administrator access (root), so this option is not available on shared hosting. Here is an example command to create and use a RAM disk with Docket Cache: $ cd wp-content/ $ sudo mount -t tmpfs -o size=500m tmpfs ./cache/docket-cache To mount the cache path automatically when the server starts, update your /etc/fstab file. For more information about RAM disks:

  1. How to Easily Create a RAM Disk
  2. What Is /dev/shm and Its Practical Usage
  3. Creating a Filesystem in RAM
On Windows, create a RAM disk and set the DOCKET_CACHE_PATH to point to the RAM disk drive.

What is the minimum RAM required for shared hosting?

By default, WordPress sets the memory limit to 256 MB. When combined with MySQL and the web server, you need more than 256 MB. If your hosting plan only provides 256 MB in total, this is not enough, and Docket Cache will not be able to improve your site's performance.

How is Docket Cache different from other object cache plugins?

Docket Cache is an Object Cache Accelerator. It optimises caching by handling post queries, comment counting, WordPress translations, and more before storing the object cache.

Can I use it alongside other cache plugins?

Yes and no. You can use it together with a page caching plugin, but not with another object cache plugin.

Can I use it with LiteSpeed Cache?

Yes. The LiteSpeed Cache plugin includes its own Object Cache feature. It may display a notice asking you to disable Docket Cache. Simply turn off the LiteSpeed Cache Object Cache to use Docket Cache instead.

Can I use Docket Cache on a busy WooCommerce store?

It is not recommended for high-traffic WooCommerce stores. Docket Cache is designed as a file-based alternative to in-memory caches like Redis and Memcached, and may not handle the demands of a busy store. For WooCommerce sites with heavy traffic, we recommend using Redis instead.

I have a VPS. Can I use Docket Cache instead of Redis?

You can, but if your VPS supports Redis, we recommend using Redis for better performance. Docket Cache is best suited for environments where Redis or Memcached is not available. That said, Docket Cache works well for small to medium sites on a VPS, with no network connection required and no risk of cache-key conflicts.

更新日志:

v26.04.04 v26.04.03 v24.07.07 v24.07.06 24.07.05 24.07.04 24.07.03 24.07.02 24.07.01 23.08.02 23.08.01 22.07.05 22.07.04 22.07.03 22.07.02 22.07.01 Please do manually remove wp-content/object-cache.php and wp-content/cache/docket-cache if an error occurs during updates. Thanks.