nawawi/docket-cache

A persistent object cache stored as a plain PHP code, accelerates caching with OPcache backend.

Fund package maintenance!
www.paypal.me/ghostbirdme/5usd

Installs: 11

Dependents: 0

Suggesters: 0

Security: 0

Stars: 4

Watchers: 2

Forks: 2

Open Issues: 1

Type:wordpress-plugin

v20.09.07 2020-10-28 17:22 UTC

README

WP compatibility PHP compatibility

A persistent object cache stored as a plain PHP code, accelerates caching with OPcache backend.

Description

The Docket cache is a persistent WordPress Object Cache that is stored as a plain PHP code. Intends to provide an alternative option for those who can't use Redis or Memcached server.

Rather than using serialize and unserialize a PHP object to store into flat files, this plugin stores data by converting the object into plain PHP code which results in faster data retrieval and better performance with Zend OPcache enabled.

Kindly refer to the WordPress documentation on Object Cache.

Why use this plugin?

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 solution is to store the object caches into files. With WordPress, exporting the PHP objects are not easy, most plugin that implements file-based solution will serialize and unserialize the object to store and retrieve the data.

The Docket Cache is better because it converts the object cache into plain PHP code. This solution is faster since WordPress can use the cache directly without running other operation.

Installation

To use Docket Cache require minimum PHP 7.2.5, WordPress 5.4 and Zend OPcache for best performance.

Please refer to Installation documentation for details.

Configuration Options

The Docket Cache uses constants variable as main configuration methods.

To adjust the plugin behavior, please refer to Configuration documentation for details.

WP-CLI Commands

You can manage this plugin through command line when activated.

To use the WP-CLI commands, please refer to WP-CLI documentation for available commands.

Screenshots

Overview Plugin Overview.

How Versions Work

Versions are as follows: Year.Month.Day

  • Year: Two digits representation of a year.
  • Month: Two digits representation of a month.
  • Day: Two digits representation of a day.

Contributions

Anyone can contribute to Docket Cache. Please do so by posting issues when you've found something that is unexpected or sending a pull request for improvements.

Thanks

  • Thanks to GitHub for hosting the code and a provides a good infrastructure.
  • Thanks to Symfony Components for release and maintaining reusable code.
  • Thanks to WordPress.org for beautiful designs, powerful features, and the freedom to build anything we want.
  • Thank you to all who have contributed to this plugin.

License

Docket cache is an Open Source Software under the MIT license.