PHPackages                             aoepeople/aoe\_modelcache - 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. aoepeople/aoe\_modelcache

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

aoepeople/aoe\_modelcache
=========================

Magento Model Cache

0.0.2(12y ago)165894[1 issues](https://github.com/AOEpeople/Aoe_ModelCache/issues)OSL-3.0PHP

Since Mar 13Pushed 11y ago38 watchersCompare

[ Source](https://github.com/AOEpeople/Aoe_ModelCache)[ Packagist](https://packagist.org/packages/aoepeople/aoe_modelcache)[ RSS](/packages/aoepeople-aoe-modelcache/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

Aoe\_ModelCache
===============

[](#aoe_modelcache)

Instructions
------------

[](#instructions)

### Load models from cache

[](#load-models-from-cache)

Replace...

```
$product = Mage::getModel('catalog/product')->load($id);

```

... with

```
$product = Mage::helper('aoe_modelcache')->get('catalog/product', $id);

```

If the model was create before the previous instance will be reused. If it wasn't created before it will be created now.

### Forcing clean model

[](#forcing-clean-model)

```
$product = Mage::helper('aoe_modelcache')->get('catalog/product', $id, true);

```

The difference to Mage::getModel('catalog/product')-&gt;load($id) is, that the created model will be cached and can be reused for future calls without the clean parameter

### Check if model exists in cache

[](#check-if-model-exists-in-cache)

```
$modelExists = Mage::helper('aoe_modelcache')->exists('catalog/product', $id);

```

### Remove model from cache

[](#remove-model-from-cache)

```
Mage::helper('aoe_modelcache')->removeFromCache('catalog/product', $id);

```

Finding candidates for optimization
-----------------------------------

[](#finding-candidates-for-optimization)

Enable the log from System &gt; Configuration &gt; ADVANCED &gt; Developer &gt; AOE Model Cache Log Settings and check var/log/aoemodelcache.log after hitting a page. You'll find all occurrences of models that have been loaded more than once incl. file and line where the call happened. These items are candidates for replacement by model cache calls.

Caution!
--------

[](#caution)

Please test the shop properly after having any changes in place. Side-effects where fresh objects are expected and a "used" instances is returned are possible.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

4449d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a7c128588934775b07942f0a35a325d72cb06acb975f4527e20b4a20ded97d18?d=identicon)[fbrnc](/maintainers/fbrnc)

---

Top Contributors

[![LeeSaferite](https://avatars.githubusercontent.com/u/47386?v=4)](https://github.com/LeeSaferite "LeeSaferite (5 commits)")

### Embed Badge

![Health badge](/badges/aoepeople-aoe-modelcache/health.svg)

```
[![Health](https://phpackages.com/badges/aoepeople-aoe-modelcache/health.svg)](https://phpackages.com/packages/aoepeople-aoe-modelcache)
```

###  Alternatives

[react/cache

Async, Promise-based cache interface for ReactPHP

444112.4M40](/packages/react-cache)[wp-media/wp-rocket

Performance optimization plugin for WordPress

7431.3M3](/packages/wp-media-wp-rocket)[illuminate/cache

The Illuminate Cache package.

12835.6M1.4k](/packages/illuminate-cache)[colinmollenhour/php-redis-session-abstract

A Redis-based session handler with optimistic locking

6325.6M14](/packages/colinmollenhour-php-redis-session-abstract)[cheprasov/php-redis-client

Php client for Redis. It is a fast, fully-functional and user-friendly client for Redis, optimized for performance. RedisClient supports the latest versions of Redis starting from 2.6 to 6.0

1281.2M21](/packages/cheprasov-php-redis-client)[amphp/redis

Efficient asynchronous communication with Redis servers, enabling scalable and responsive data storage and retrieval.

165634.7k44](/packages/amphp-redis)

PHPackages © 2026

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