PHPackages                             vendic/module-optimize-cache-size - 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. vendic/module-optimize-cache-size

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

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

2.0.1(3mo ago)3453.6k↓10.5%6[3 issues](https://github.com/Vendic/module-optimize-cache-size/issues)MITPHPPHP &gt;=8.3

Since Jul 31Pushed 3mo ago4 watchersCompare

[ Source](https://github.com/Vendic/module-optimize-cache-size)[ Packagist](https://packagist.org/packages/vendic/module-optimize-cache-size)[ RSS](/packages/vendic-module-optimize-cache-size/feed)WikiDiscussions main Synced 1mo ago

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

Vendic\_OptimizeCacheSize
=========================

[](#vendic_optimizecachesize)

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**,

**This means that you lose the option to have product/category specific layout handles** (both through the use of XML files in your installation *and* through the use of Design &gt; Layout and Design &gt; Custom Layout Update on the category and product edit pages in the admin), unless you re-enable them via the configuration.

Configuration: Stores -&gt; Configuration -&gt; Vendic -&gt; Optimize Cache Size

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

[](#installation)

```
composer require vendic/module-optimize-cache-size
```

Related discussions
-------------------

[](#related-discussions)

- [\#189 Configuration option to disable product specific layout update handles ](https://github.com/magento/magento2/issues/189#issuecomment-698430804)
- [\#102 New handles for the Category, Product and CMS pages](https://github.com/magento/magento2/issues/102)
- [\#36244 Product layout based on attribute set](https://github.com/magento/magento2/pull/36244#issuecomment-2231106962)

Results
-------

[](#results)

Here's a some real life results from a Magento 2.4 instance with 7k products and 1.5k categories:

[![number cache keys](./media/cache-keys.png)](./media/cache-keys.png)

[![cache ttl](./media/cache-ttl.png)](./media/cache-ttl.png)

The arrow marks the release of this extension. You can clearly see the results. Cache keys were reduced 50% (or more). Average Redis TTL also dropped significantly.

###  Health Score

53

—

FairBetter than 97% of packages

Maintenance77

Regular maintenance activity

Popularity42

Moderate usage in the ecosystem

Community18

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~109 days

Recently: every ~85 days

Total

6

Last Release

109d ago

Major Versions

1.0.3 → 2.0.02025-09-29

### Community

Maintainers

![](https://www.gravatar.com/avatar/459ec352617fd5a9f46070338b99ed03828fc902eb0a361aed717576e67bd2c4?d=identicon)[TjitseE](/maintainers/TjitseE)

---

Top Contributors

[![Tjitse-E](https://avatars.githubusercontent.com/u/14849044?v=4)](https://github.com/Tjitse-E "Tjitse-E (10 commits)")[![Zaahed](https://avatars.githubusercontent.com/u/39271781?v=4)](https://github.com/Zaahed "Zaahed (4 commits)")[![TuVanDev](https://avatars.githubusercontent.com/u/5556060?v=4)](https://github.com/TuVanDev "TuVanDev (3 commits)")[![andrei-lisovski](https://avatars.githubusercontent.com/u/158823392?v=4)](https://github.com/andrei-lisovski "andrei-lisovski (3 commits)")[![artem-lytvynenko-ven](https://avatars.githubusercontent.com/u/189153674?v=4)](https://github.com/artem-lytvynenko-ven "artem-lytvynenko-ven (3 commits)")[![peterjaap](https://avatars.githubusercontent.com/u/431360?v=4)](https://github.com/peterjaap "peterjaap (2 commits)")[![allrude](https://avatars.githubusercontent.com/u/47407?v=4)](https://github.com/allrude "allrude (1 commits)")

---

Tags

elements-base

### Embed Badge

![Health badge](/badges/vendic-module-optimize-cache-size/health.svg)

```
[![Health](https://phpackages.com/badges/vendic-module-optimize-cache-size/health.svg)](https://phpackages.com/packages/vendic-module-optimize-cache-size)
```

###  Alternatives

[lizardmedia/module-varnish-warmer

Varnish Cache Warmer Magento2 module by Lizard Media

6276.8k](/packages/lizardmedia-module-varnish-warmer)[litespeed/module-litemage

LiteMage Full Page Cache for LiteSpeed Web Server

3254.8k](/packages/litespeed-module-litemage)[redchamps/module-easy-cache-clean

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

2838.0k](/packages/redchamps-module-easy-cache-clean)[mage-os/module-automatic-translation

Automatic AI content translation for Mage-OS.

277.1k](/packages/mage-os-module-automatic-translation)[graycore/magento2-graphql-introspection-cache

1015.2k](/packages/graycore-magento2-graphql-introspection-cache)[mage-os/module-inventory-reservations-grid

Add a grid with the list of inventory reservations.

126.8k](/packages/mage-os-module-inventory-reservations-grid)

PHPackages © 2026

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