Title: Random issues at activating
Last modified: January 16, 2022

---

# Random issues at activating

 *  Resolved [hassoun](https://wordpress.org/support/users/hassoun/)
 * (@hassoun)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/random-issues-at-activating/)
 * Hello,
 * I ALMOST ALWAYS have the following issues when I activate the plugin.
 * 1. Activating the plugin always takes several attempts. Once I hit Activate, 
   I am redirected to the options page: options-general.php?page=redis-cache but
   it says that I am not allowed to access the page. Once I return back to the plugins
   list, I see that it is still inactive. SEVERAL attempts, and it’s finally active.
 * 2. In many cases, almost every time, after activating, I see that all plugins’
   states return to an old state. If I am troubleshooting something and I have all
   plugins deactivated, I usually activate the caching plugins at the latest. So
   after I activate Redis, I see my plugins’ states returned back to what they were
   like a few minutes/15 minutes ago, while I was troubleshooting.
 * 3. In a very rare scenario but it happened ~4 times with 2 different websites:
   two different websites on my server (and of course different usernames, different
   domains, etc.) got mixed up:
 * a) Website A redirects to website B ADN VICE VERSA! Especially on wp-admin and/
   or the login page.
    b) Plugins’ state gets mixed up!! Things like all plugins
   get deactivated except for those that were active on both. c) Other areas of 
   the website also got mixed up.
 * I coped with the first 2 issues, but the last one is still there, even after 
   several days of attempts on either site. I ALWAYS get the same consequences. 
   Only on those two, and I have 10+ other websites on the same server without issues.
 * Any suspected underlying issue?

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Till Krüss](https://wordpress.org/support/users/tillkruess/)
 * (@tillkruess)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/random-issues-at-activating/#post-15257708)
 * Hi [@hassoun](https://wordpress.org/support/users/hassoun/)!
 * Easy. Frequently activating the object cache is not recommended. If you need 
   to do it, always run `redis-cli flushall` prior to activating to avoid stale 
   data in Redis causing issues.
 * Also, be sure to set a distinct `WP_REDIS_DATABASE` for each site to avoid data
   collisions.
 * — Till
 *  Thread Starter [hassoun](https://wordpress.org/support/users/hassoun/)
 * (@hassoun)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/random-issues-at-activating/#post-15260562)
 * Thanks for the quick response, [@tillkruess](https://wordpress.org/support/users/tillkruess/)!
   I am glad to know it’s easy.
 * Next time, I will flushall before activating the plugin.
 * Regarding the parameter, I don’t get what should be the value. Should I give 
   each site a random unique digit? I don’t get what (select logical database) means
   in your Wiki.
 * Cheers.
 *  Plugin Author [Till Krüss](https://wordpress.org/support/users/tillkruess/)
 * (@tillkruess)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/random-issues-at-activating/#post-15260913)
 * You got `0-15` by default:
 * [https://kb.objectrocket.com/redis/guide-on-the-redis-databases-1451](https://kb.objectrocket.com/redis/guide-on-the-redis-databases-1451)
 *  [m22878](https://wordpress.org/support/users/m22878/)
 * (@m22878)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/random-issues-at-activating/#post-15278563)
 * This is the exact issue I encountered and he didn’t address why it happens at
   all.
 * [https://wordpress.org/support/topic/why-does-it-deactivate-plugin-and-or-log-you-out-when-you-try-to-enable-redis-2/](https://wordpress.org/support/topic/why-does-it-deactivate-plugin-and-or-log-you-out-when-you-try-to-enable-redis-2/)
 * He only mentioned the part about why the other plugin states get messed up. Is
   this plugin what caused that issue? It seemed like all the plugins were going
   haywire where you would deactivate one then refresh the page and it still shows
   activated. Or one shows activated but then you try to delete it and it says you
   cannot delete an active plugin. It was a NIGHTMARE situation to try and figure
   out.
 * And it all started after trying to activate this plugin over and over again, 
   but he never said why the issue happens when you activate this plugin why it 
   says you cannot view this page and then you realize the plugin was deactivated
   after you enabled the redis cache.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Random issues at activating’ is closed to new replies.

 * ![](https://ps.w.org/redis-cache/assets/icon-256x256.gif?rev=2568513)
 * [Redis Object Cache](https://wordpress.org/plugins/redis-cache/)
 * [Support Threads](https://wordpress.org/support/plugin/redis-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/redis-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/redis-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/redis-cache/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [m22878](https://wordpress.org/support/users/m22878/)
 * Last activity: [4 years, 4 months ago](https://wordpress.org/support/topic/random-issues-at-activating/#post-15278563)
 * Status: resolved