Discover Centmin Mod today
Register Now

Xenforo Fewest best cache options for CMM with XF.

Discussion in 'Forum software usage' started by ModeltogTossen, Feb 21, 2016.

  1. ModeltogTossen

    ModeltogTossen I wish I could??

    313
    97
    28
    Dec 20, 2015
    Denmark
    Ratings:
    +143
    Local Time:
    5:12 AM
    1.9.12
    10.0.23
    Hello folks..

    I have tried many of the suggestions here at CMM forum.. I have been using Redis, Pagespeed, [bb]cache, proxy with cdn etc.. I only use my CMM install for one XF.

    What is the best fewest options I need focus on?

    Is that memcache with redis and pagespeed - or perhaps memcache, pagespeed and then offload to cdn or another combinations?


    What do you mean/using at your site and why?

    Thanks in advance for participate.
     
  2. eva2000

    eva2000 Administrator Staff Member

    54,859
    12,239
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,810
    Local Time:
    2:12 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    why few and not all ?

    XF Redis Cache addon by @Xon is a must and bd cache break css.php into css files (might need to disallow those specific css from ngx_pagespeed depending on your XF style). Zend Opcache for PHP 5.6 or 7.0 branch. Then just tweak and tune depending on your style or your site.
     
  3. ModeltogTossen

    ModeltogTossen I wish I could??

    313
    97
    28
    Dec 20, 2015
    Denmark
    Ratings:
    +143
    Local Time:
    5:12 AM
    1.9.12
    10.0.23
    Well, to be honest - thats on me - I keep fiddle with it - so many choices - and have the feeling - I can't manage to get them all fit right in and therefore I did think - better with a few that performs 100% than many (all) performs 50% .. I'm not a webmaster or programmer like you most are so its very difficult for me to master it.
     
  4. eva2000

    eva2000 Administrator Staff Member

    54,859
    12,239
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,810
    Local Time:
    2:12 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    My motto, try and see and learn and revise and try again and then repeat :D
     
  5. ModeltogTossen

    ModeltogTossen I wish I could??

    313
    97
    28
    Dec 20, 2015
    Denmark
    Ratings:
    +143
    Local Time:
    5:12 AM
    1.9.12
    10.0.23
    That exactly what I have done - and the conclusion was/are - this very thread here.. Please note - its not the same as giving up on things. :) Just an acknowledgment of my skills and the time I can give to this.

    Thank you for your continued motivating forward me. Appreciated. (y)
     
  6. eva2000

    eva2000 Administrator Staff Member

    54,859
    12,239
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,810
    Local Time:
    2:12 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    sometimes it's good to sit back and take a break and then try again. Usually what I do if I run into problems I can't solve right away :)
     
  7. rdan

    rdan Well-Known Member

    5,447
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    12:12 PM
    Mainline
    10.2
    On XenForo Forum's I own and Managed:
    • PHP 7.0 w/ Zend Opcache
    • Redis Caching with all 3 addons from @Xon relating to caching
    • Nginx Fastcgi_cache - Nginx fastcgi_cache full page guest caching
    • Cloudflare w/ custom page rules to force cache css.php, attachments, proxy images, image gallery
    • MariaDB 10.1
    • Defer JS addon or ngx_pagespeed (FYI pagespeed module is CPU intensive if you have high visitors)
    • Lazy Image Loader of @Xon again :)
     
    Last edited: Feb 21, 2016
  8. rdan

    rdan Well-Known Member

    5,447
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    12:12 PM
    Mainline
    10.2
    BD cache addon is fine if you don't want to use:
    But BD Cache addon still work with PHP and Data Caching, still Fastcgi_cache is still faster.
     
  9. ModeltogTossen

    ModeltogTossen I wish I could??

    313
    97
    28
    Dec 20, 2015
    Denmark
    Ratings:
    +143
    Local Time:
    5:12 AM
    1.9.12
    10.0.23
  10. rdan

    rdan Well-Known Member

    5,447
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    12:12 PM
    Mainline
    10.2
    You should,it helps all visitors guest or logged.
     
  11. negative

    negative Active Member

    415
    50
    28
    Apr 11, 2015
    Ratings:
    +98
    Local Time:
    6:12 AM
    1.9.10
    10.1.11
    Yes, that add-on looking as perfect but i'm experiencing some problems with [bd]Cache plugin too.
    I hope you can help or advice me.

    After enabled; When i look the source of any forum page, i see 2 css line. First line looking xenforo default css variables. Second line including some custom css variables.

    Code:
    <link rel="stylesheet" href="data/bdCache/css/1449947867/82af1cf5ef8c4d1e47fd446d2b6ca6bb.css"/>
    <link rel="stylesheet" href="css.php?css=GoToTop_normal,discussion_list,inline_mod,moderator_bar,nat_public_css,tag&amp;style=2&amp;dir=LTR&amp;d=1449947867"/>
    But if i use CTRL + F5 in source mode, then i see that second lines converting to constant css too.

    Code:
    <link rel="stylesheet" href="data/bdCache/css/1449948057/029ce0e0929514fb77df4c54f30676b0.css"/>
    <link rel="stylesheet" href="data/bdCache/css/1449948057/74045ad9c340ec6dfb73db15996190b1.css"/>
    If i dont do CTRL + F5 then our css calling with css.php still. We must refresh the page for creating this css ?


    Why may it occurring ?

    P.S: I' m using cloudflare but not defer js + fastcgi cache now
     
  12. eva2000

    eva2000 Administrator Staff Member

    54,859
    12,239
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,810
    Local Time:
    2:12 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    that's normal bd cache has to let each page's css.php elements load first to determine which ones for that page need concatenating into a single css

    Usually happens first time css.php is loaded with new css called or triggered on a page that wasn't previously called. It might get stuck so try disable and re-enable bd cache from admin too and see
     
  13. negative

    negative Active Member

    415
    50
    28
    Apr 11, 2015
    Ratings:
    +98
    Local Time:
    6:12 AM
    1.9.10
    10.1.11
    @eva2000 I mean it does php to css process after first F5 i know it but after second F5, i still see the one line .css file and another line still normal css php line.

    In here, i see two .css line every time. But for me, it doesn't. Sometimes two lines .css line and usually one line php and one line css. So i think, [bd]Cache plugin doesn't work properly on our xenforo. I didn't solve it.
     
  14. ModeltogTossen

    ModeltogTossen I wish I could??

    313
    97
    28
    Dec 20, 2015
    Denmark
    Ratings:
    +143
    Local Time:
    5:12 AM
    1.9.12
    10.0.23
    Sorry to distrub @RoldanLT - I'm sure you did posted a screenshot of your CF page rules for your XF caching somewhere here on cmm - but I simply can't fint it - any hints..?
     
  15. rdan

    rdan Well-Known Member

    5,447
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    12:12 PM
    Mainline
    10.2
    [​IMG]

    [​IMG]
     
  16. ModeltogTossen

    ModeltogTossen I wish I could??

    313
    97
    28
    Dec 20, 2015
    Denmark
    Ratings:
    +143
    Local Time:
    5:12 AM
    1.9.12
    10.0.23
    Thank you so very much for your kindness.. (y)