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 Issues

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

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.

Docket Cache causing a Fatal Error in Site Health when used with Performance Lab

Hello,

I am just writing to inform you that Docket Cache is causing a fatal error on the site health page when the user also has performance lab installed. This issue was sent to performance lab as well and it was determined - In core, wp_load_alloptions() returns strings, with arrays and objects being serialized. However, some object cache plugins (namely Docket Cache) may return mixed values, including arrays and objects. This hardens perflab_aao_autoloaded_options_size() to account for this by ensuring all array and object values are serialized before computing the string length.'

This is issue #1238 on Github under performance lab.

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.

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?

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

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

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.