Comments (4)
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.
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.
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.
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 (16)
- Uncaught Error: Too few arguments to function nwdcx_throwable(), 1 HOT 2
- Plugins all got deactivated after adding folder into plugin folder HOT 2
- 503 Service Unavailable HOT 1
- oAuth not working with object cache enabled HOT 1
- Doc Has Duplicate Constant HOT 1
- wp_cache_flush_group HOT 1
- Can we open the Discussion tab on this repo? HOT 1
- A way to import configurations HOT 2
- Object cache class: missing magic getter/setter? HOT 2
- Docket Cache causing a Fatal Error in Site Health when used with Performance Lab HOT 2
- Files sizes HOT 1
- PHP 7.4.9 - HTTP-Error 500.0 - Internal Server Error HOT 2
- Sponsor this project
- Opt-out of Automatic Plugin Updates HOT 3
- WP Frontend Memory Limit How much should be set? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docket-cache.