Comments (5)
Thank you for your explanation. One last question.
If
DISALLOW_FILE_MODS
WordPress should not modify the filesystem and the only way to enable theobject-cache.php
drop-in is using thewp redis enable
command. Or of course copying it by hand.
I believed that in order to activate the cache it was necessary to be able to write to the object-cache.php
file and by not allowing writing with DISALLOW_FILE_MODS
, it was not going to work.
So, can I activate the cache with the wp redis enable
command and/or copying the file by hand and even if it is DISALLOW_FILE_MODS
defined, will it still work? Because if that's the case and I can activate it from the console, for me it is the solution.
Thank you very much again.
from redis-cache.
Yep, that works!
from redis-cache.
Right, when DISALLOW_FILE_MODS
this doesn't need to be a red warning. We we just gray it out?
Because the "Enable Cache" button will be disabled regardless if DISALLOW_FILE_MODS
is set.
from redis-cache.
Right, when
DISALLOW_FILE_MODS
this doesn't need to be a red warning. We we just gray it out?
Yes and no... You can have DISALLOW_FILE_MODS
and at the same time (that was my case), have permissions problems in your server and the filesystem not be writeable too.
What I try to say it´s that are two totally different cases and should be treated that way.
For example, as I said, in my server I uploaded all files with my user and the server is running with apache user. I detected it becauses when I try to enable cache, It´s says the filesystem is not writable and I need a sysadmin to correcte the permissions.
And then, If I enable DISALLOW_FILE_MODS
I can't enable cache it either becauses in the test writable filesystem is checking if the constant is defined, but it´s not a problem with the writability of the system.
I need any way to enable cache with DISALLOW_FILE_MODS
, that's why I suggested adding a new constant that, when checking the system, can allow the cache to be activated even with DISALLOW_FILE_MODS
defined, such as WP_REDIS_SKIP_DISABLE_FILE_MODS
And, sorry for my language, it's difficult to explain well when it's not your native language.
from redis-cache.
Thanks for the details!
If DISALLOW_FILE_MODS
WordPress should not modify the filesystem and the only way to enable the object-cache.php
drop-in is using the wp redis enable
command. Or of course copying it by hand.
I think you're right. If DISALLOW_FILE_MODS
the warning should not be so aggressive.
from redis-cache.
Related Issues (20)
- Passing null to parameter results in a warning when running in PHP 8.2.8 HOT 4
- Resolve uncaught Error HOT 9
- Yoast timeouts HOT 1
- RedisException: socket error on read socket when Publish a post (Wordpress SEO enabled) HOT 3
- Tweak filesystem warning HOT 2
- Command `_MASTERS` is not a registered Redis command when enable in cli HOT 1
- Potentially extra `cache_misses` counts for `get_multiple()` HOT 2
- Not writeable fault with ssh2 option HOT 3
- wp_cache_flush_group fails on 2.5.2 HOT 5
- Transient cache not properly invalidated HOT 4
- Failure to activate the plugin and delete it from WordPress HOT 1
- Config question (agregate) for existing working redis cluster HOT 1
- Uncaught Error: Call to a member function get on `null` HOT 1
- Command _MASTERS is not a registered Redis command when fluash cache on cli HOT 4
- Support disabling of group flush HOT 1
- RedisException: OOM command not allowed when used memory > 'maxmemory' HOT 1
- PHP Fatal error: Uncaught Error: Call to a member function get() on null in /wp-content/object-cache.php:193 HOT 1
- Error when saving in editor HOT 3
- The CPU of redis suddenly increased, causing my site to crash
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 redis-cache.