PHPackages                             litespeed/module-litemage - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Caching](/categories/caching)
4. /
5. litespeed/module-litemage

ActiveMagento2-module[Caching](/categories/caching)

litespeed/module-litemage
=========================

LiteMage Full Page Cache for LiteSpeed Web Server

2.2.5(1y ago)3254.8k↓34.5%10[1 issues](https://github.com/litespeedtech/magento2-LiteSpeed_LiteMage/issues)OSL-3.0PHPPHP &gt;=7.4.0

Since Nov 11Pushed 1y ago5 watchersCompare

[ Source](https://github.com/litespeedtech/magento2-LiteSpeed_LiteMage)[ Packagist](https://packagist.org/packages/litespeed/module-litemage)[ RSS](/packages/litespeed-module-litemage/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (26)Used By (0)

magento2-LiteSpeed\_LiteMage
============================

[](#magento2-litespeed_litemage)

Description
-----------

[](#description)

The LiteMage Cache module provides an improved caching solution alternative to the PageCache module and Varnish Cache. The module will replace the Varnish option to the cache selector in the administrator interface for easy switching.

For most use cases, LiteMage Cache can improve your stores' performance right out of the box. LiteMage Cache also reduces the complexity of your stack; only the LiteMage Extension and LiteSpeed Web Server are required\*. There is no need for an NGINX reverse proxy nor a Varnish Cache instance because the server can handle HTTPS and HTTP/2 requests and cache the pages all in one application.

LiteMage Cache operates by taking information from Magento and instructing the LiteSpeed server on how to cache the page. Once the server knows how to cache it, future requests to the same page will be served directly from the server. Requests will never hit the Magento backend until a change occurs.

\* For clustered setups, LiteSpeed Load Balancer is needed.

Prerequisites
-------------

[](#prerequisites)

LiteSpeed Web Server Enterprise Edition with Magento 2 set up and working.

Installation
------------

[](#installation)

The following steps assume that the Prerequisites mentioned above are met.

1. Access a terminal as the Magento directory owner (e.g. "user1") and cd to the Magento 2 root directory. If logged in as root, do `su user1` first.
2. Set the store to developer mode:

    ```
    php bin/magento deploy:mode:set developer

    ```
3. Download the zip package file from this repository.
4. Unzip the source package. The unzipped directory should be named magento2-LiteSpeed\_LiteMage-master.
5. In the Magento 2 root directory, run the following command to create the needed directories:

    ```
    mkdir -p app/code/Litespeed/Litemage

    ```
6. Move the contents from the GitHub directory to the newly created directory:

    ```
    mv /path/to/magento2-LiteSpeed_LiteMage-master/* app/code/Litespeed/Litemage/

    ```
7. Confirm that the contents' owner is consistent with the other magento store files.
8. Enable LiteMage 2 in magento:

    ```
    php bin/magento module:enable Litespeed_Litemage

    ```
9. Upgrade the Magento setup:

    ```
    php bin/magento setup:upgrade

    ```
10. Recompile code

    ```
    php bin/magento setup:di:compile

    ```
11. If desired, switch back to production mode. The previous step may need to be repeated after the mode switch.

### Enable LiteMage after installation:

[](#enable-litemage-after-installation)

1. In the Magento 2 root directory's .htaccess file, add the following lines:

    ```

    LiteMage on

    ```
2. Log into the Magento admin page.
3. In Store -&gt; Configuration -&gt; Advanced -&gt; System, make sure LiteMage is enabled and the Full Page Cache setting has LiteMage selected.
4. In System -&gt; Cache Management, refresh configurations and page cache.
5. Visit and refresh a page that should be cache enabled. Look for the LiteMage related response headers.

    Example:

    ```
    X-LiteSpeed-Cache: litemage,hit

    ```

Configuration
-------------

[](#configuration)

No further changes to your Magento 2 configurations should be necessary as LiteMage honors the same cacheable settings as varnish in the layout xml files.

###  Health Score

48

—

FairBetter than 95% of packages

Maintenance48

Moderate activity, may be stable

Popularity41

Moderate usage in the ecosystem

Community13

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~129 days

Recently: every ~164 days

Total

25

Last Release

369d ago

PHP version history (8 changes)2.0.1PHP ~5.6.0|~7.0.6

2.0.6PHP ~5.6.0|~7.0.6|~7.1.0

2.0.9PHP ~5.6.0|~7.0.6|~7.1.0|~7.2.0

2.0.10PHP &gt;=7.0.0

2.1.4PHP &gt;=7.1.0

2.1.7PHP ^7.1

2.1.9PHP &gt;=7.3.0

2.2.5PHP &gt;=7.4.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/70a011c15e27ce86ed6ed0e3e54cd708696079279383a4f3d847ad6140852b6c?d=identicon)[LiteSpeedTech](/maintainers/LiteSpeedTech)

---

Top Contributors

[![litespeedtech](https://avatars.githubusercontent.com/u/4990456?v=4)](https://github.com/litespeedtech "litespeedtech (60 commits)")

---

Tags

cachelitemagemagento

### Embed Badge

![Health badge](/badges/litespeed-module-litemage/health.svg)

```
[![Health](https://phpackages.com/badges/litespeed-module-litemage/health.svg)](https://phpackages.com/packages/litespeed-module-litemage)
```

###  Alternatives

[fastly/magento2

Fastly CDN Module for Magento 2.4.x

1564.2M1](/packages/fastly-magento2)[lizardmedia/module-varnish-warmer

Varnish Cache Warmer Magento2 module by Lizard Media

6276.8k](/packages/lizardmedia-module-varnish-warmer)[elgentos/magento2-varnish-extended

This extension extends the built-in Varnish functionalities

6510.9k](/packages/elgentos-magento2-varnish-extended)[vendic/module-optimize-cache-size

Magento 2 extension that reduces the number of cache keys by removing catalog\_product\_view\_id\_, catalog\_product\_view\_sku\_, catalog\_product\_view\_attribute\_set\_, catalog\_category\_view\_id\_ layout handles by default

3453.6k](/packages/vendic-module-optimize-cache-size)[redchamps/module-easy-cache-clean

Clean invalidated cache(s) easily in a Magento 2 store

2838.0k](/packages/redchamps-module-easy-cache-clean)[elgentos/magento2-clientside-cache

Elgentos Clientside Cache

1017.5k](/packages/elgentos-magento2-clientside-cache)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
