To enable LSCache, add the following code at the beginning of the .htaccess file in the folder where WordPress is installed:

<IfModule LiteSpeed>
CacheEnable public /
RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^(HEAD|GET)$
RewriteCond %{REQUEST_URI} !^(wp-admin|wp-login.php|wp-cron.php)
RewriteRule .* - [E=Cache-Control:max-age=120]
</IfModule>
Cette réponse était-elle pertinente ? 0 Utilisateurs l'ont trouvée utile (0 Votes)