A LiteSpeed Cache integration for the Bagisto framework that helps boost performance and reduce server load by caching frequently accessed content.
✅ We use OpenLiteSpeed LSCache — an Open-Source, High-Performance Cache Engine
This package allows you to easily manage cache for:
- ⚡ Homepage static content
- 📦 Product listings & category pages
- 📝 CMS pages
- 🔍 Search results
With LiteSpeed Cache, your store will deliver content faster, reduce database queries, and scale better under high traffic.
OpenLiteSpeed LSCache is an open-source, built-in full-page caching system tightly integrated with the OpenLiteSpeed web server. It significantly improves application performance without requiring complex configurations.
- 🚀 High-performance full-page caching
- 📈 Improves site speed & reduces TTFB (Time To First Byte)
- 🔁 Supports dynamic & static caching
- 💾 Reduces server workload & DB queries
- 🌐 Open-source & production-ready
- ⚙️ Fine-tuned cache controls for specific routes
- 🔒 Secure & maintained by LiteSpeed Technologies
- Bagisto v2.3.6
- Installed & configured LiteSpeed Web Server with LSCache enabled
👉 To verify if a URL is cached, use the LSCache Check Tool.
Require the litespeed/lscache-laravel package via Composer:
composer require litespeed/lscache-laravelphp artisan vendor:publish --provider="Litespeed\LSCache\LSCacheServiceProvider"- To enable CacheLookup for LiteSpeed Cache, add the following code, either on
server, vhost or .htaccesslevel:
<IfModule LiteSpeed>
CacheLookup on
</IfModule>Unzip the bagisto LSC package zip to the bagisto root directory, and Follow the below mention steps:
"Webkul\\LSC\\": "packages/Webkul/LSC/src"Webkul\LSC\Providers\LSCServiceProvider::class,composer dump-autoloadphp artisan litespeed:installFor more information about the LSCache, You can follow the Official LiteSpeed Documentation
- Run your store.