https://github.com/bagisto/lite-speed-cache
LiteSpeed Cache Extension for Bagisto
https://github.com/bagisto/lite-speed-cache
bagisto cache cms ecommerce laravel litespeed lscache optimization performance php
Last synced: 5 months ago
JSON representation
LiteSpeed Cache Extension for Bagisto
- Host: GitHub
- URL: https://github.com/bagisto/lite-speed-cache
- Owner: bagisto
- Created: 2025-09-05T08:02:49.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-11-06T12:13:02.000Z (8 months ago)
- Last Synced: 2025-11-06T14:13:42.345Z (8 months ago)
- Topics: bagisto, cache, cms, ecommerce, laravel, litespeed, lscache, optimization, performance, php
- Language: PHP
- Homepage: https://github.com/bagisto/bagisto
- Size: 69.3 KB
- Stars: 2
- Watchers: 0
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LiteSpeed Cache for Bagisto
A **LiteSpeed Cache integration** for the [Bagisto](https://bagisto.com/) 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.
---
## 🌟 Why OpenLiteSpeed LSCache?
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.
### ✅ Key Benefits
* 🚀 **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**
---
## 🚀 Requirements
- [Bagisto v2.3.6](https://github.com/bagisto/bagisto/tree/v2.3.6)
- Installed & configured [LiteSpeed Web Server](https://docs.litespeedtech.com/lsws/) with **LSCache enabled**
👉 To verify if a URL is cached, use the [LSCache Check Tool](https://check.lscache.io/).
---
## ⚙️ Installation & Configuration
### 1. Install LiteSpeed LSCache for Laravel
Require the `litespeed/lscache-laravel` package via Composer:
```bash
composer require litespeed/lscache-laravel
```
#### Publish `Litespeed\LSCache` package's configuration:
```bash
php artisan vendor:publish --provider="Litespeed\LSCache\LSCacheServiceProvider"
```
#### Enable CacheLookup for LiteSpeed Cache:
* To enable CacheLookup for LiteSpeed Cache, add the following code, either on `server, vhost or .htaccess` level:
```bash
CacheLookup on
```
### 2. Configure Bagisto LSC Package
Unzip the `bagisto LSC package` zip to the bagisto root directory, and Follow the below mention steps:
#### Do couple of entries in root `composer.json` in psr-4 object:
```bash
"Webkul\\LSC\\": "packages/Webkul/LSC/src"
```
#### Goto `bootstrap/providers.php` file and add following line:
```bash
Webkul\LSC\Providers\LSCServiceProvider::class,
```
#### Run the below commands from root in terminal:
```php
composer dump-autoload
```
```php
php artisan litespeed:install
```
### For more information about the LSCache, You can follow the [Official LiteSpeed Documentation](https://docs.litespeedtech.com/lscache/lsclaravel/installation/#installation)
- Run your store.