lscache | 1412 https://xvlnw.com I'm on my way Tue, 09 Mar 2021 12:09:10 +0000 th hourly 1 https://wordpress.org/?v=5.5.14 การใช้ .htaccess เปิดใช้งาน lscache ใน Litespeed https://xvlnw.com/topic/811 Tue, 09 Mar 2021 12:08:47 +0000 https://xvlnw.com/?p=811 โค๊ดอย่างง่าย สำหรับเปิดใช้งาน lscache ด้วย .htaccess ครับ วิธีตรวจสอบ ใช้ลองใช้งาน Debug header ดู แล้วหาค่า “x-litespeed-cache:” จะโชว์ขึ้นมา แสดงว่าโค๊ดเริ่มทำงานแล้ว จากตัวอย่างด้านบน คือทำการตั้งค่าแคชไว้ที่ 3600 วินาที หรือ 1 ชั่วโมงครับ

The post การใช้ .htaccess เปิดใช้งาน lscache ใน Litespeed first appeared on 1412.]]>
โค๊ดอย่างง่าย สำหรับเปิดใช้งาน lscache ด้วย .htaccess ครับ

<IfModule LiteSpeed>
RewriteEngine On
CacheEngine on esi crawler
CacheEnable public /
RewriteCond %{REQUEST_METHOD} ^HEAD|GET$
RewriteRule .* - [E=Cache-Control:max-age=3600]
</IfModule>

วิธีตรวจสอบ ใช้ลองใช้งาน Debug header ดู แล้วหาค่า “x-litespeed-cache:” จะโชว์ขึ้นมา แสดงว่าโค๊ดเริ่มทำงานแล้ว

จากตัวอย่างด้านบน คือทำการตั้งค่าแคชไว้ที่ 3600 วินาที หรือ 1 ชั่วโมงครับ

The post การใช้ .htaccess เปิดใช้งาน lscache ใน Litespeed first appeared on 1412.]]>