Skip to content

bagisto/lite-speed-cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 

Repository files navigation

LiteSpeed Cache for Bagisto

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.


🌟 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

👉 To verify if a URL is cached, use the LSCache Check Tool.


⚙️ Installation & Configuration

1. Install LiteSpeed LSCache for Laravel

Require the litespeed/lscache-laravel package via Composer:

composer require litespeed/lscache-laravel

Publish Litespeed\LSCache package's configuration:

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:
<IfModule LiteSpeed>
   CacheLookup on
</IfModule>

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:

"Webkul\\LSC\\": "packages/Webkul/LSC/src"

Goto bootstrap/providers.php file and add following line:

Webkul\LSC\Providers\LSCServiceProvider::class,

Run the below commands from root in terminal:

composer dump-autoload
php artisan litespeed:install

For more information about the LSCache, You can follow the Official LiteSpeed Documentation

  • Run your store.

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •