Giter Site home page Giter Site logo

nawawi / docket-cache Goto Github PK

View Code? Open in Web Editor NEW
45.0 5.0 16.0 13.77 MB

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

License: Other

PHP 94.69% CSS 2.99% JavaScript 2.22% HTML 0.11%
wordpress wordpress-plugin cache extensions wp-object-cache zend-opcache opcache opcache-backend

docket-cache's Introduction

Docket Cache

Docket Cache

WP compatibility PHP compatibility

Supercharge your website using a persistent object cache, 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 https://wordpress.org/plugins/docket-cache for full-length description.

Documentation

To adjust the plugin behaviour, installation or manage through a command line, please refer to the https://docs.docketcache.com for details.

Installation

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

  1. In your WordPress admin click Plugins -> Add New
  2. Search plugins "Docket Cache" and click Install Now.
  3. Click Activate or Network Activate in Multisite setups.
  4. Click Docket Cache in the left menu to access the admin page.

Please wait around 5 seconds for Docket Cache ready to cache the objects.

Or download directly from WordPress Plugin Directory.

Sponsor this project

Fund Docket Cache one-off or recurring payment to support our open-source development efforts.

Become our sponsor, all funds will be dedicated to the maintenance, development, and marketing of this project.


Noteworthy Sponsors

A heartful thanks and appreciation.

Other sponsors are mentioned in the honourable list.


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.

docket-cache's People

Contributors

nawawi avatar zam3858 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

docket-cache's Issues

Files sizes

Hello! Thanks for developing this code! I'm having problems with this not respecting the max sizes, I had 8GB of files which actually turned the website slower, can you help?

PHP 7.4.9 - HTTP-Error 500.0 - Internal Server Error

Hello,
I use PHP 7.4.9 with WordPress 5.5 and your latest version of Docket Cache plugin and I get now the most of all the page requests, the follow error: HTTP-error 500.0 – Internal Server Error. C:\PHP\v7.4.9\php-cgi.exe - The FastCGI-proces is unexpectedly terminated
When I go back to PHP version 7.4.8 I don’t have any problems.
Maybe it’s something to do with the Opcache extension of PHP 7.4.9?
Or maybe the following Opcache settings in my php.ini file are not longer good with the new version of PHP 7.4.9?
The Opcache settings I use are:
[PHP_OPCACHE]
extension=php_opcache.dll
zend_extension=php_opcache.dll
opcache.enable=1
opcache.memory_consumption=512
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=50000
opcache.use_cwd=1
opcache.validate_timestamps=1
opcache.enable_file_override=0
opcache.dups_fix=0
opcache.revalidate_freq=2
opcache.consistency_checks=0
opcache.max_wasted_percentage=5
opcache.revalidate_freq=2
opcache.enable_cli=0
opcache.file_cache=”C:\Windows\Temp\”
opcache.file_cache_consistency_checks=1
opcache.file_cache_fallback=1

Please, can this be solved? Or what are the best Opcache settings in php.ini?
I can set everything myself. I use a localhost Windows IIS webserver environment.
Sorry, I don’t have an online URL.

I wrote the same message on the Support forum on www.wordpress.org.

Thanks in advance.
Kind Regards.

Opt-out of Automatic Plugin Updates

Hi,

I can't seem to opt-out of Automatic Plugin Updates for Docket Cache.

I like to test all my plugin updates in my staging environment before deploying them to live.

Appreciate if this can be made easier.

Thank you.

wp_cache_flush_group

Hello there. Thank you for this project!
FYI, a function named wp_cache_flush_group was introduced in the development version of WordPress. You might want to check it.

oAuth not working with object cache enabled

Hello,
We use a single sign on process to log into websites on our hosting platform.
With Docker Object Cache enabled single sign on doesn't work. We are redirected from the wp-admin page to the wp-login page withe reauth=1 even if the logged in cookies are set.
Any idea what could be the issue?

Object cache class: missing magic getter/setter?

Hi,

The default WP_Object_Cache class has some magic methods for getting/setting private properties.

It looks like Docket Cache WP_Object_Cache implementation doesnt provide them.

This results in a fatal errors when trying to access these private properties.

I encountered the issue with WooCommerce which is using Async Scheduler.
When memory is getting full, Async Scheduler tries to free some memory by clearing some object cache properties.

I originally opened an issue on the Async Scheduler repo, but shouldn't they be implemented as they are in the core WP_Object_Cache class?

thanks

Uncaught Error: Too few arguments to function nwdcx_throwable(), 1

When used with PHP8, I get the following when trying to change a setting on the Configuration page with plugin version 21.02.02

Fatal error: Uncaught Error: Too few arguments to function nwdcx_throwable(), 1 passed in /var/www/html/wp-content/plugins/docket-cache/includes/src/WpConfig.php on line 220 and exactly 2 expected
in /var/www/html/wp-content/plugins/docket-cache/includes/compat.php on line 208

Anropsstack:

    nwdcx_throwable()
    wp-content/plugins/docket-cache/includes/src/WpConfig.php:220
    Nawawi\D\WpConfig::has()
    wp-content/plugins/docket-cache/includes/src/ReqAction.php:273
    Nawawi\D\ReqAction::run_action()
    wp-content/plugins/docket-cache/includes/src/ReqAction.php:313
    Nawawi\D\ReqAction::parse_action()
    wp-content/plugins/docket-cache/includes/src/ReqAction.php:29
    Nawawi\D\ReqAction::Nawawi\D\{closure}()
    wp-includes/class-wp-hook.php:287
    WP_Hook::apply_filters()
    wp-includes/class-wp-hook.php:311
    WP_Hook::do_action()
    wp-includes/plugin.php:484
    do_action()
    wp-admin/admin.php:237

Make just the object cache available / a simplified version of docket-cache

Hello there,

Thank you for creating such an amazing plugin. I have replaced all Redis instances with Docket Cache and using Syncthing to synchronize the object cache PHP files.

Is there any way I can use only the object cache file without the entire plugin? Alternatively, could you create a version of Docket Cache that only includes the core object caching features, excluding all other functionalities? I don't require the other features, and it becomes challenging to audit the entire plugin. Please let me know. Thank you!

503 Service Unavailable

Hello!
When using the plugin on a large site (WooCommerce + dokan + WPML + theme + wp rocket + other plugins )
I get a 503 error on the second language part of the site (We have en and de). The error is not immediate, I detect it as follows: I want to go to the English version of the site almost all the pages, then I go to the German version and start walking through products and pagination, and if there is no error I walk through all the pages
I can provide our test dev server, and help in any way possible

Sponsor this project

There is a lot of room for improvement and features to add, requiring countless hours dedicated to testing and development.

Become our sponsor to excite future development. Sponsoring can be made using one of the methods below.

Funding

All funds will be dedicated to the maintenance and development of this project.

Development

The contribution is required from time to time only, I would say sorry first, if not accept your offers. If you intend to contribute, please do email me at [email protected].

  • Documentation: proofreading / grammar checking
  • Shared hosting account: nginx/litespeed/apache
  • Testing: unit test etc..etc
  • Graphic material

Contributors

Let's thank the following early-stage contributors who contributed their time to the development of Docket Cache.


Honourable list

Individual and Organisation that sponsored this project.

Thank you for your contribution to Docket Cache.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.