- Uyumlu XF Sürümleri
- 2.2.X
- 2.3.X
Forumunuza yüksek performanslı sayfa önbelleğe almayı hızlı ve kolay bir şekilde uygulayın.
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 in, their page requests will always hit the backend.
Additional Plugin Features
- Significantly reduce server load and improve site performance through automatic page caching.
- Support for HTTPS, HTTP/2, & QUIC out-of-box
htaccess
dosyasına eklemeyi unutmayın:
Kod:
# LiteSpeed XenForo cache
<IfModule litespeed>
CacheLookup public on
RewriteEngine On
# cache
RewriteCond %{HTTP_COOKIE} !(xf_lscxf_logged_in|xf_user|xf_session_admin) [NC]
RewriteCond %{REQUEST_URI} !/install/ [NC]
RewriteRule .* - [E=Cache-Control:max-age=360,E="cache-vary:xf_style_id,xf_language_id"]
# no cache
RewriteCond %{HTTP_COOKIE} (xf_lscxf_logged_in|xf_user|xf_session_admin) [NC]
RewriteRule .* - [E=Cache-Control:vary=loggedin,E=Cache-Control:no-cache]
</IfModule>