XenForo Forum with Nginx fastcgi_cache full page guest caching

XenForo Forum with Nginx fastcgi_cache full page guest caching

eva2000

Well-known member
FYI you can use webpagetest.org scripting to test such shared cache paths via navigating a few urls without logging data and only log data for the final destination to see effects of caching at browser etc levels

Code:
logData 0
setViewportSize 1920 1080
navigate https://community.centminmod.com/
navigate https://community.centminmod.com/forums/forum-news.2/

logData 1
navigate https://community.centminmod.com/
setViewportSize 1920 1080
end result is https://www.webpagetest.org/result/170101_PZ_5RZ/2/details/#waterfall_view_step1

for phcorner

Code:
logData 0
setViewportSize 1920 1080
navigate https://www.phcorner.net/forums/
navigate https://www.phcorner.net/announcements/

logData 1
navigate https://www.phcorner.net/forums/
setViewportSize 1920 1080
end result https://www.webpagetest.org/result/170101_R7_64P/1/details/#waterfall_view_step1

upload_2017-1-1_15-8-39.png

upload_2017-1-1_15-8-10.png

upload_2017-1-1_15-9-9.png

that's all the respective cache benefits shown at all levels - browser, cdn/edge and front/back end caching :)

this is where the final navigates from forum news/announcement page to index page final destination renders at 100%

upload_2017-1-1_15-15-49.png

wow phcorner was slower because of all the ads !

waterfall-010117.gif
 
Last edited:

rdn

Well-known member
Haven't tried it yet.
All pages on my forum has only Adsense ads except thread view.

Thread view has complicated ad setup :D.
Mostly I have 2 from adsense and 1 from Amazon CPM/ClickIO.

Ad appearance vary from how many post thread page has.
The lesser the post the lesser the Ads I shown.
 

rdn

Well-known member
RoldanLT updated XenForo Forum with Nginx fastcgi_cache full page guest caching with a new update entry:

Added filter for Multiple Style

Added filter for forums having multiple style in used.
Code:
~xf_style_id              1;
But commented out by default.

Mobile/Desktop View support commented out by default.
Code:
#map $http_user_agent $mobile_request {
#    default                                         0;
#    ~*android|ip(hone|od)|windows\s+(?:ce|phone)    1;
#    ~*symbian|sonyericsson|samsung|lg|blackberry    1;
#    ~*mobile                                        1;
#}
Code:
#fastcgi_cache_key...
Read the rest of this update entry...
 

rdn

Well-known member
I also changed my Avatar URI to apply the hack on hiding avatars for guest that's why Cloudflare is still storing new cache for avatars now.
I'll leave the current ads as is for now :).
My forum user's has 15-20% Ad block user's so still fast for them :D.
 
Top