Litespeed settings can be imported and exported via the Litespeed > Import/Export admin menu. One should also make sure that the Litespeed crawler is enabled and running in Litespeed > Settings > Crawler (tab) and in Litespeed > Crawler admin menu. Here are our proposed typical Litespeed settings from the Vanilladev installation:
When saving Litespeed settings make sure the Litespeed .htaccess
init stanza is saved correctly in the beginning of the file. Otherwise caching will not work at all! These are the first 4 lines inside the <IfModule LiteSpeed>
block and they should be placed in the beginning:
# BEGIN LSCACHE ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ## <IfModule LiteSpeed> RewriteEngine on CacheLookup on RewriteRule .* - [E=Cache-Control:no-autoflush] RewriteRule ^min/\w+\.(css|js) - [E=cache-control:no-vary] # MORE MIGHT FOLLOW DEPENDING ON THE REST OF YOUR LITESPEED PLUGIN SETTINGS ... </IfModule> ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ## # END LSCACHE