After installing this plugin I saw significant speed increases on page loading times. I’ve used it in combination with other page and browser cache plugins and have had no conflicts.
Docket Cache – Object Cache Accelerator
The Docket Cache is a persistent WordPress Object Cache solution designed to store data as plain PHP code. It offers an efficient alternative for users who are unable to utilize Redis or Memcached servers.
Unlike conventional approaches that rely on serializing and unserializing PHP objects to store them into flat files, this plugin transforms objects into plain PHP code. This method significantly enhances data retrieval speed and overall performance, especially when paired with Zend OPcache.
For more information, please refer to the documentation on Caching In WordPress.
When it comes to reliable persistent Object Cache in WordPress, Redis or Memcached comes on top. However, those solutions require knowledge of server and rarely available at low cost or shared hosting servers.
The only viable solution is to store object caches in files. In WordPress, exporting PHP objects is not easy. Most plugins implementing file-based caching rely on serializing and unserializing objects to store and retrieve data.
Docket Cache takes a better approach by turning the object cache into plain PHP code. This solution is faster since WordPress can use the cache directly without running other operations.
To use Docket Cache requires minimum:
To adjust the plugin behaviour, installation or manage through a command line, please refer to the Documentation for details.
Fund Docket Cache one-off or recurring payment to support our open-source development efforts.
Noteworthy Sponsors:
A heartful thanks and appreciation.
Other sponsors are mentioned in the honourable list
To use Docket Cache require minimum PHP 7.2.5, WordPress 5.4 and Zend OPcache for best performance.
Please wait around 5 seconds for Docket Cache ready to cache the objects.
Object caching is a process that stores database query results in order to quickly bring them back up next time they are needed.
The cached object will be served promptly from the cache rather than sending multiple requests to a database. This is more efficient and reduces massive unnecessary loads on your server.
In simple terms, object caching allows objects that are used often to be copied and stored at a closer location for quicker use.
By default, the object cache in WordPress is non-persistent. This means that data stored in the cache reside in memory only and only for the duration of the request. Cached data will not be stored persistently across page loads. To make it persistent, the object cache must be stored on a local disk.
Docket Cache is not just stored the object cache, it converts the object cache into plain PHP code. This solution is faster since WordPress can use the cache directly without running other operation.
OPcache is a caching engine built into PHP, that improves performance by storing precompiled script bytecode in shared memory, thereby removing the need for PHP to load and parse scripts on each request.
Docket Cache converts the object cache into plain PHP code. When reading and writing cache, it will use OPcache directly which results in faster data retrieval and better performance.
The Cronbot is an external service that pings your website every hour to keep WordPress Cron running actively.
This service offered as an alternative option and is not compulsory to use. By default, this service not connected to the end-point server. You can completely disable it at the configuration page.
Garbage Collector is a Cron Event that runs every 5 minutes to monitor cache files purposely for cleanup and collecting stats.
A RAM disk is a representation of a hard disk using RAM resources, and it can take the form of a hardware device or a virtual disk.
Read and write speed on RAM is multiple times faster than SSD drives therefore storing Docket Cache files on a RAM disk greatly increases it’s performance.
Do note that creating RAM disks requires server administrative permission (root access) so this solution is not suitable for shared hosting servers.
This 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 on boot, you need to update your /etc/fstab file.
Please refer to the articles below about RAM disk:
To use it in Windows OS, create RAM Disk and change DOCKET_CACHE_PATH point to RAM Disk drive.
By default, WordPress allocates the memory limit to 256 MB. Combined with MySQL and Web Server, you need more than 256 MB. If you’re using a cheap hosting plan that allocates only 256 MB for totals usage. It is not enough, and Docket Cache can’t improve your website performance.
Docket Cache is an Object Cache Accelerator. It does some optimization of caching like cache post queries, comments counting, WordPress translation and more before storing the object caches.
Yes and No. You can pair using it with page caching plugin, but not with the object cache plugin.
Yes, you can. The LiteSpeed Cache plugin has an Object Cache feature. Currently, by default, it will prompt a notice asking to disable Docket Cache. You only need to turn off LiteSpeed Cache Object Cache in order to use Docket Cache.
Yes and No. As suggested, Docket Cache is an alternative to in-memory caches like Redis and Memcached. It depends on how your store has been setups. It may require further tuning to the configuration and may involve other optimisations.
Yes, you can. It can boost more your WordPress performance since there is no network connection need to makes and no worry about memory burst, cache-key conflict and error-prone caused by the improper settings.
After installing this plugin I saw significant speed increases on page loading times. I’ve used it in combination with other page and browser cache plugins and have had no conflicts.
My website simply lost the drag and slowness… wow!
After uninstall this plugin left a tons of files around in wp-content folder.
Docket Cache hat meine Seiten mit Elementor Pro, LearnPress und PMP deutlich schneller gemacht. Die Datenbankzeit ging praktisch auf null, die Anzahl der Queries wurde stark reduziert, und das Backend fühlt sich viel reaktionsschneller an. Einfach zu installieren, leicht zu konfigurieren und perfekt kompatibel mit WP Rocket und WP Optimize. Absolute Empfehlung!
Works flawless, really simple way to test object cache locally when developing, without needing to setup memchache or redis or similar.
It is really easy to set up and does its work flawlessly.
“Docket Cache – Object Cache Accelerator” is open source software. The following people have contributed to this plugin.
Contributors
Thanks to Ronny from web55.se for bug report.
Thanks to Kevin Shenk of Avunu LLC for providing access to the staging server for testing purposes.
Kindly refer to changelog.txt for previous changes.
Please do manually remove wp-content/object-cache.php and wp-content/cache/docket-cache if an error occurs during updates. Thanks.