lady
V2EX  ›  WordPress

WordPress 配置 redis 缓存

  •  
  •   lady · Apr 26, 2017 · 5148 views
    This topic created in 3478 days ago, the information mentioned may be changed or developed.

    折腾了一晚上 4 个小时,抽了一包烟,终于搞定了,

    贴出来,希望能帮到像我这样非程序员的网络爱好者,也希望转载的保留链接,谢谢~~~谢谢~

    https://www.wuaidu.com/archives/32895.html

    12 replies  •  2017-04-26 14:04:54 +08:00
    yangqi
    yangqi
    Apr 26, 2017
    1
    呵呵,和 memcached 并没有什么区别
    gdtv
    gdtv
    Apr 26, 2017 via Android
    2
    楼主的网站:
    你正在使用 Adblocker 广告拦截软件,请阅读下面的内容
    Showfom
    Showfom
    PRO
    Apr 26, 2017
    3
    额 4 小时一包烟 楼主怎么做到的
    Showfom
    Showfom
    PRO
    Apr 26, 2017
    4
    我们用的是 Redis Object Cache 这个插件,配合 WP Super Cache 或 Cache Enabler 这种静态化插件,然后装的 php 7.0.x + MySQL 5.7.x 速度飞一样- -
    l9rw
    l9rw
    Apr 26, 2017
    5
    博客配 redis 真的值得?
    lady
    lady
    OP
    Apr 26, 2017
    6
    @yangqi 恩 之前使用的是 memcached ,可能 server 就在宿主机上吧,加载速度不是很理想,切换到阿里的 redis ,感觉网页加载比较理想(,为了避免广告嫌疑,所以真心的相信其它云服务商也一样)
    lady
    lady
    OP
    Apr 26, 2017
    7
    @gdtv 嗯 其实现在的人拦截不拦截都无所谓,
    lady
    lady
    OP
    Apr 26, 2017
    8
    @Showfom 我是老烟枪,最近想戒烟,但是没有成功,最长的戒烟历史就是一天。。。
    lady
    lady
    OP
    Apr 26, 2017
    9
    @Showfom 感觉装 WP Super Cache 或 Cache Enabler 这些插件就有点多余,毕竟插件也消耗系统资源,如果是 SSD 盘,高端 U 还好一点。。。。
    lady
    lady
    OP
    Apr 26, 2017
    10
    @l9rw 个人看法吧,毕竟 99 快一年就当是测试吧~
    yytsjq
    yytsjq
    Apr 26, 2017
    11
    WordPress 的 Object Cache 是把双刃剑,不如一步到位使用基于 Redis 的页面缓存:

    试试这个插件:
    https://wordpress.org/plugins/pj-page-cache-red/

    如果 Redis 页面缓存还是不理想,楼主可以折腾下直接基于 Nginx 的内存缓存:

    https://github.com/openresty/lua-nginx-module#ngxshareddict
    +
    https://github.com/openresty/srcache-nginx-module
    Showfom
    Showfom
    PRO
    Apr 26, 2017
    12
    @lady 不多于,这是纯静态化缓存,访问速度快不少
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1479 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 23:20 · PVG 07:20 · LAX 15:20 · JFK 18:20
    ♥ Do have faith in what you're doing.