A LiteSpeed Cache integration for the Bagisto framework that helps boost performance and reduce server load by caching frequently accessed content.
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.
- 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-laravel
php artisan vendor:publish --provider="Litespeed\LSCache\LSCacheServiceProvider"
- To enable CacheLookup for LiteSpeed Cache, add the following code, either on
server, vhost or .htaccess
level:
<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-autoload
php artisan vendor:publish --provider="Webkul\LSC\Providers\LSCServiceProvider" --force
php artisan optimize:clear
For more information about the LSCache, You can follow the Official LiteSpeed Documentation
- Run your store.