• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
  • Upgrade Your Account
    Hello Guest! Upgrade your account to download all VIP Resource here

Add-ons [2.x] LiteSpeed Cache for XF2 - Community 2.0.1

No permission to download

kuteboy

Ahihi
Staff member
Joined
Dec 13, 2015
Messages
891
Chủ thớt
#1
kuteboy đã đăng tài nguyên mới:

LiteSpeed Cache for XF2 - Community - Quickly and easily implement high-performance page caching on your XenForo forum

Developed by LiteSpeed Technologies - the LiteSpeed Cache Plugin for XenForo 2 (LSCXF2) is a PHP-based plugin that communicates with your installation of LiteSpeed Web Server(LSWS) and its built-in page cache, LSCache. Because LSCache is built directly into LSWS, overhead is significantly reduced and caching can be done more efficiently than with other PHP-based caches.

The current community version of LSCXF2 will only cache and serve pages for non-logged in users. After a user has logged...
Đọc thêm về tài nguyên này...
 

NamLee

Bơ Đi Mà Sống
Staff member
Joined
Dec 11, 2015
Messages
2,340
#2
Hướng dẫn cho anh em nào chưa biết, sau khi cài đặt xong, mở file .htaccess thêm dòng sau vào
Code:
# LiteSpeed XenForo cache
<IfModule litespeed>
    CacheLookup public on
    RewriteEngine On
     # cache
     RewriteCond %{HTTP_COOKIE} !xf_user [NC]
     RewriteRule .* - [E=Cache-Control:max-age=360]
     # no cache
     RewriteCond %{HTTP_COOKIE} xf_user [NC]
     RewriteRule .* - [E=Cache-Control:no-cache]
</IfModule>
Chú ý: nếu diễn đàn của bạn có thay đổi prefix của database thì cần sửa lại xf_user cho đúng với database của bạn.

Sau khi cài xong, vào trang http://www.webconfs.com/http-header-check.php để kiểm tra, bấm khoảng 2 lần nếu thấy hit như hình sau là ok

1521020203588.png
 

Facebook Comment

Similar threads


Users who viewed this discussion (Total: 4)

New posts New resources Most viewed threads Threads with more replies