Openlitespeed caching problem

#1
Hi there!

We want to cache some map tiles for a TTL of 1week. We have enabled the OLWS Cache and it works on 2nd request. But the cache is cleared about every 10 minutes. the caching directory has only a size of 35MB. The URL to test is: https://mapproxy.awekas.at/map/11/1097/713.png
Test on the testpage:
1. Access -miss
2025-08-05 19_22_35-LSCache Check - mapproxy.awekas.at.png
2nd access: - hit
2025-08-05 19_22_48-LSCache Check - mapproxy.awekas.at.png
10minutes later - miss
2025-08-05 19_38_39-713.png (256×256).png
But if i test it several minutes later i have no cache hit on the same file.
Also we have tried to rise the expire settings on VH level. This also not working.
2025-08-05 19_30_11-LiteSpeed WebAdmin Console.png 2025-08-05 19_30_24-713.png (256×256).png
We have tested some cache settings but the cache time will not rise.
We have tested rewrite rules. No change...
2025-08-05 19_33_59-LiteSpeed WebAdmin Console.png
Thies are the cache settings on VH level
2025-08-05 19_36_29-LiteSpeed WebAdmin Console.png
I have checked several forum posts, but i have not found any solution. Has anybody a tip for us?

Best regards
Othmar
 
#2
Because caching static files has no benefit, it won't speed up the load from the server side. You might want to do it on the CDN level for static files.

Changing the cache module to globally cache all the requests is not ideal; if you have another site like WordPress, then it may not follow the WordPress cache logic and purge properly.

The expire is for browser cache, it's different to the page cache.

So, if you just want to cache those static files, it's better to revert everything you made to the OpenLiteSpeed web server.
 
Top