LSCache for Laravel
Implement accurate caching and purging in your custom-developed Laravel projects.
Cache both public and private content on the same page with ESI!
Server-Side Caching
The LiteSpeed Cache Package for Laravel is free and open source. It provides a sophisticated tag-based cache management system that can be used with LiteSpeed Web Server’s built-in cache module to process public and private cache for your Laravel sites.
With the LSCache package, you can deliver better performance and a superior user experience.
Features
Server-Level Full-Page Cache
Both Public and Private Cache
Set a long or short TTL as needed
Tag-Based Caching and Purge
Route and Route Group Caching
Frequently Asked Questions
Yes, LSCLaravel will always be free and open source. That said, a LiteSpeed server is required, and there are fees associated with some LiteSpeed server editions.
A LiteSpeed server is required in order to use this plugin.
LiteSpeed Web Server Enterprise with:
- LSCache Module (v5.2.2+)
- LiteSpeed WebADC (v2.1+)
Any single server or cluster including a LiteSpeed server will work.
The LSCache Module is built into your licensed copy of LiteSpeed Web Server. When it comes to caching dynamic content, the LSCache Module does all of the work.
The LSCache Package for Laravel is simply an interface. It allows Laravel to instruct the server Module on what to cache, how long to cache it, and when to purge. And it allows the site owner to manage and configure the Module. Without the server Module, the Laravel Package could not function.
A licensed LSCache Module is required in order to use the free LSCache Laravel Package.
The cache entries are stored at the LiteSpeed server level. The simplest solution is to use LiteSpeed WebADC, as the cache entries will be stored at that level.
If using another load balancer, the cache entries will only be stored at the backend nodes, not at the load balancer.
The purges will also not be synchronized across the nodes, so this is not recommended.
If a customized solution is required, please contact LiteSpeed Technologies at info@litespeedtech.com
NOTICE: The rewrite rules created by this plugin must be copied to the Load Balancer.
Yes. However ESI is not supported on OLS, which means you will need to use JavaScript if you want to implement CSRF tokens. Please see our wiki for further details on using CSRF tokens with LiteSpeed Cache.
No, not at this time.
LiteSpeed Cache for Laravel works right out of the box with default settings that are appropriate for most sites.
Please refer to the steps from our How to Install LSCLaravel page.