acpl/flarum-lscache

Speed up your forum on LiteSpeed Web Server.

Installs: 1 519

Dependents: 0

Suggesters: 0

Security: 0

Stars: 5

Watchers: 2

Forks: 1

Open Issues: 1

Type:flarum-extension

v2.3.1 2024-01-30 22:20 UTC

README

Latest Stable Version Total Downloads GitHub Sponsors

A Flarum extension. Integrates LSCache with your forum.

Requires a LiteSpeed Web Server or OpenLiteSpeed.

Installation

Install with composer:

composer require acpl/flarum-lscache

Upon initial activation, the extension will add its configurations to the .htaccess file. It's recommended to back up your .htaccess file before installing the extension.

Updating

composer update acpl/flarum-lscache
php flarum migrate
php flarum cache:clear

Cache Management

This extension smartly manages the cache by purging it only where needed. For instance, when a new post is added in a discussion, the cache for that specific discussion, its tags, and the homepage are purged.

When you clear the Flarum cache, the LSCache is also cleared automatically unless you disable this feature in the settings.

You can clear the LSCache without clearing the Flarum cache via the admin panel. This option is available under the standard Flarum cache clearing option. There is also the php flarum lscache:clear command. The command supports the --path argument. For example, php flarum lscache:clear --path=/tags --path=/d/1-test. You can use this if you only want to purge specific paths instead of the entire cache.

How to Contribute

We welcome any contributions to the development of LiteSpeed Cache for Flarum! If you'd like to contribute, feel free to fork this repository and submit a pull request. You can also open an issue if you want to suggest improvements or report a problem.

Support This Project

This project is open source and maintained by a single developer. If you find it useful and would like to ensure its continued development, please consider supporting it through GitHub Sponsors. Your support is greatly appreciated!

Links