Learn about Centmin Mod LEMP Stack today
Register Now

Nginx PageSpeed Redis cache for Pagespeed

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by pdinh97qng, Jun 14, 2019 at 1:28 PM.

  1. pdinh97qng

    pdinh97qng Member

    47
    6
    8
    Jan 24, 2016
    Ratings:
    +10
    Local Time:
    12:15 AM
    Please fill in any relevant information that applies to you:
    • CentOS Version: CentOS 7 64bit
    • Centmin Mod Version Installed: 123.09beta01
    • Nginx Version Installed: 1.17.0
    • PHP Version Installed: 7.3.6
    • MariaDB MySQL Version Installed: 10.3.xx
    • When was last time updated Centmin Mod code base ? : today
    • Persistent Config: Do you have any persistent config file options set in /etc/centminmod/custom_config.inc ? You can check via this command:
      Code (Text):
      CRYPTO_DEVTOOLSETGCC='y'
      DEVTOOLSETEIGHT='y'
      DISABLE_TLSONEZERO_PROTOCOL='y'
      DUALCERTS='n'
      GENERAL_DEVTOOLSETGCC='y'
      KEYLENGTH='ec-256'
      LETSENCRYPT_DETECT='y'
      MARCH_TARGETNATIVE='n'
      NGINXPATCH='y'
      NGINX_BROTLIDEP_UPDATE='y'
      NGINX_DEVTOOLSETGCC='y'
      NGINX_DYNAMICTLS='y'
      NGINX_GEOIPTWOLITE='y'
      NGINX_IPV='n'
      NGINX_LIBBROTLI='y'
      NGINX_PAGESPEED='y'
      NGXDYNAMIC_BROTLI='y'
      NGXDYNAMIC_GEOIPTWOLITE='y'
      NGXDYNAMIC_NGXPAGESPEED='y'
      PHP_ARGON='y'
      PHP_MEMCACHE=n
      PHP_MEMCACHED=n
      PRIORITIZE_CHACHA_OPENSSL='y'
      PUREFTPD_DISABLED=y
      

      I'm using XenForo 2.1.x on my main forum, with redis cache for global, page_cache_css as outline at here. Recently I use memcached for pagespeed but I want to switch to redis, I just don't know which Databaseindex (...), port (6379 or 6380).

     
  2. EckyBrazzz

    EckyBrazzz Active Member

    378
    71
    28
    Mar 28, 2018
    Brazil
    Ratings:
    +139
    Local Time:
    4:15 AM
    1.17.x
    10.3.x
    Code (Text):
    NGINX_PAGESPEED='y'
    

    That won't work with Redis, I tried it and had similar problems with it.
     
    • Agree Agree x 1
  3. pdinh97qng

    pdinh97qng Member

    47
    6
    8
    Jan 24, 2016
    Ratings:
    +10
    Local Time:
    12:15 AM
    Did you change memcached to redis in pagespeed.conf? And I'm testing these on a test server.
     
  4. EckyBrazzz

    EckyBrazzz Active Member

    378
    71
    28
    Mar 28, 2018
    Brazil
    Ratings:
    +139
    Local Time:
    4:15 AM
    1.17.x
    10.3.x
    Last edited: Jun 14, 2019 at 2:06 PM
    • Like Like x 1
  5. eva2000

    eva2000 Administrator Staff Member

    40,188
    8,888
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,697
    Local Time:
    5:15 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    yeah ngx_pagespeed with redis is a hit or miss so may not work - memcached with ngx_pagespeed is a more stable option if you had to choose
     
    • Like Like x 1
  6. pdinh97qng

    pdinh97qng Member

    47
    6
    8
    Jan 24, 2016
    Ratings:
    +10
    Local Time:
    12:15 AM
    Thank you, so I just keep my old config on XF2.1
     
..