Enable Cache for custom PHP server

#1
Hi,
I have my own custom php server hosted at a2hosting and they use litespeed for caching.
I want to enable Caching via litespeed manually without plugins.
I read the documentation and i cant find what i want.
I want the following:
1. Enable cache for images only
2. How to optimize images using litespeed caching
3. cache specific php url pages ex: example.com/single?Id=xyz . How to cache such pages only without other php pages. Where single is not a folder its a page.
4. how to cache folders only, for example folder containing images.
Note: My site is a custom php server so i cant use extensions such as lscache or any other. So i think everything must be written in htaccess file.
 

Unique_Eric

Administrator
Staff member
#2
Hi @mohammed.dahwi

LSCache won't cache for static files including images and it's actually not needed. You can use some CDN services to cache static files. FYI. LSWS do provide browser cache for static files by default settings, please check https://www.litespeedtech.com/suppo...cache:lscwp:browser_cache#at_the_server_level

LiteSpeed cache does not provide optimize/tuning functions, those are built in cache plugins and only wordpress lscache has it so far.

Here's some cache methods for non plugin cases,
https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:cache:no-plugin-drupal https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:cache:no-plugin-joomla
Feel free to increase the max-age if you want.

Best
 
Top