Coder Social home page Coder Social logo

Comments (5)

Albvadi avatar Albvadi commented on June 26, 2024 1

Thank you for your explanation. One last question.

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 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.

tillkruss avatar tillkruss commented on June 26, 2024 1

Yep, that works!

from redis-cache.

tillkruss avatar tillkruss commented on June 26, 2024

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.

Albvadi avatar Albvadi commented on June 26, 2024

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.

tillkruss avatar tillkruss commented on June 26, 2024

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)

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.