Wordpress Redis plug-in

ericosman

Verified User
Joined
Nov 25, 2019
Messages
719
Location
Weert
Hi all,

Because i was sick of editing wp-config.php manual everytime i made this simple Wordpress plug-in that does the following:
  • Installs and activates the Redis Object Cache plugin automatically
  • Configures Redis to use the correct DirectAdmin UNIX socket
  • Detects the hosting user dynamically (no manual config needed)
  • Provides a clear status dashboard (plugin, object cache, socket, connection, PHP extension)
  • Includes one-click actions to fix issues and flush the cache
If people have more idea's or comments let me know!

edit: uploaded the correct version.
 

Attachments

Last edited:
Very nice, thank you :)
Just one small thing about the version: In the php file it shows "Version: 4.0", after install in the "diagnose" tab "Plugin Version: 2.7.0"
 
If you want the real suggestion, try push to github. People can easy read the code without downloading / extract files.
 
Code:
    if (($i = array_search('home', $parts)) !== false) {
I know, this just compatible when env() can't get the user Home directory.

But the issued will happending, when hosting using difference Home dir, like "/home2", "/partition2" .
 
Back
Top