同环境下多个WordPress使用Redis配置方法

解决这个问题的办法很简单,只需要将“Redis”缓存对象命名,这样Redis就能够分辨出哪个网站的缓存对应着的是那个网站的,启到分开管理的效果。

实现Redis缓存分开调用的办法

在WordPress的文件目录中,找到“wp-config.php”,在里面添加一句

define('WP_CACHE_KEY_SALT', '站点域名');

如果有多个网站,那就在每一个WordPress的“wp-config.php”添加上,那个网站的域名即可。

启用的时间,估计会要一会儿,所以再启用以后,耐心等一会儿,然后重启一下服务器即可。

给TA买糖
共{{data.count}}人
人已赞赏
技术分享

Linux操作系统常用命令总结

2021-9-7 14:59:45

技术分享

测试webp文章

2021-11-20 17:03:32

2 条回复 A文章作者 M管理员
  1. He Makes Money Online WITHOUT Traffic?

    Most people believe that you need traffic to profit online...
    And for the most part, they're right!
    Fact is.. 99.99% of methods require you to have traffic.
    And that in itself is the problem..
    Because frankly, getting traffic is a pain in the rear!
    Don't you agree?
    That's why I was excited when a good friend told me that he was profiting, but with ZERO traffic.
    I didn't believe him at first...
    But after he showed me the proof, it's certainly the real deal!
    I'm curious what your thoughts are.
    Click here to take a look >> https://bit.ly/3mOAfVp
    Please view it before it's taken down.

  2. Get 450+ Extra Daily Visitors and 3X Your Profits

    “How can I get more traffic to my site?”
    People ask me this question all the time.
    Truth be told, ranking on Google is getting *harder*,
    because everyone and their grandma is targeting
    the same keywords.
    My friend George and his team just released a new
    SEO WordPress plugin that fixes this problem.
    It ranks your site higher in Google, without you
    creating more content or building backlinks.

    Check it out here ==> https://bit.ly/39swbCx

个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索