Git Product home page Git Product logo

Comments (4)

nawawi avatar nawawi commented on June 16, 2024 2

Hi there, sorry for the late response.

do you think the results will be similar for your plugin vs redis?

Nope. Redis is better, it is server based.

Have you ever benched them together?

Nope. We can't compete with Redis.

Is there any benefit of storing the data like stats & options on filesystem ( wp-content/docket-cache-data/) instead of the database?

Docket Cache uses Constant as a configuration method. It is more reasonable to use a filesystem since it needs to load once WordPress loaded the object cache. And it is to avoid any issues with Database.

Thanks.

from docket-cache.

nawawi avatar nawawi commented on June 16, 2024

Hi,

Thank you for using Docket Cache.

You may disable any option on the configuration page, and then copy wp-content/docket-cache-data/options.php to use it later and for other sites.

That way you can just use Object Cache instead of creating a fork of this plugin.

Alternatively, you can try to edit includes/src/Plugin.php and find this code at the bottom file.

    public function register()
    {
        if (!$this->compat_notice()) {
            return;
        }
	$this->register_plugin_hooks();
        $this->register_admin_hooks();
        $this->register_tweaks();
        $this->register_cronjob();
        $this->register_cli();

        nwdcx_runaction('docketcache/init', $this);
    }

and comment-out $this->register_tweaks();

// $this->register_tweaks();

Hope this helps.

Thanks.

from docket-cache.

hj-collab avatar hj-collab commented on June 16, 2024

Hi @nawawi,

Thanks for your prompt response. I'll look into it.

I got interested in your plugin after reading the following article. Though it does not mention your plugin but do you think the results will be similar for your plugin vs redis? Have you ever benched them together? I understand your primary objective was to help people on shared hosting without redis support.

https://konstantin.blog/2021/redis-vs-memcached-vs-file_get_contents/

I believe the major reason behind this is the network requests / trips required to be made by Redis / Memcached. Using unix sock will be faster but then you lose features such as clustering.

Is there any benefit of storing the data like stats & options on filesystem ( wp-content/docket-cache-data/) instead of the database?

Best regards,

from docket-cache.

hj-collab avatar hj-collab commented on June 16, 2024

Nope. Redis is better, it is server based.
Nope. We can't compete with Redis.

I found your plugin to be outperforming Redis and Memcached on a modern ryzen 7950x server. Redis has more moving parts (features) in general. I just required simple object caching with no cluster support, etc and your plugin is faster for me.

I had noticed similar results in a comparison from a wordpress core contributor. https://konstantin.blog/2021/redis-vs-memcached-vs-file_get_contents/

from docket-cache.

Related Issues (15)

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.