LiteSpeed Cache Package for Laravel
Introducing the newest member of the LiteSpeed Cache plugin family: the LiteSpeed Cache Package for Laravel!
Now you can implement LiteSpeed’s powerful caching features in your custom-developed Laravel websites.
The Laravel LSCache composer package allows you to manage LiteSpeed’s powerful server-level full-page cache for both public and private content. With tag-based caching and purging, and the ability to punch private holes in public content with ESI, you can cache virtually any page on your Laravel site with unparallelled accuracy.
What’s in the Package?
The free and open source LiteSpeed Cache package contains two middlewares and one facade to cover three functionalities:
- LSCache Middleware to control the cache-control header for LSCache
- LSTags Middleware to control the tag header for LSCache
- LSCache Facade to handle purging of cache entries
The LSCache package, when paired with LiteSpeed Web Server, gives your custom-built Laravel sites a number of advantages.
You get a server-level full-page cache, accurate for both public and private content, sometimes appearing together on a single page, thanks to ESI. You get a sophisticated tag-based caching and purging system, the ability to set a cache expiration as short or as long as you need, and caching for routes and route groups. The helper functions found in the LiteSpeed Cache package make all of this (and more) easy for you to implement.