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 today

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 62% 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

4495d 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

[nexcess/magento-turpentine

A Varnish extension for Magento.

5202.7k](/packages/nexcess-magento-turpentine)[beryllium/cachebundle

Provides an interface to Memcache for Symfony2 applications

33136.2k](/packages/beryllium-cachebundle)[ecomdev/magento-varnish

Varnish Integration framework for Magento

634.4k](/packages/ecomdev-magento-varnish)

PHPackages © 2026

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