PHPackages                             thelia/smarty-cache-module - 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. thelia/smarty-cache-module

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

thelia/smarty-cache-module
==========================

1.0.0(10y ago)01541LGPL-3.0+PHP

Since Nov 28Pushed 8y ago5 watchersCompare

[ Source](https://github.com/thelia-modules/SmartyCache)[ Packagist](https://packagist.org/packages/thelia/smarty-cache-module)[ RSS](/packages/thelia-smarty-cache-module/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

SmartyCache
===========

[](#smartycache)

A simple module to cache some parts of a template. It uses a smarty function.

Usage
-----

[](#usage)

The example will cache the generate code of a navigation menu. It will generate different caches depending of the current category, the lang and the currency. The cache will be used for 60 seconds, before being deleted :

```
{tcache key="navigation" ttl="60" category={category attr="id"}}

        {loop name="category-navigation" type="category" }
            ....

            ....
        {/loop}

{/tcache}
```

Parameters
----------

[](#parameters)

- **key** : (mandatory) a unique key
- **ttl** : (mandatory) a time to live in seconds
- **lang** : specific cache by lang, possible values : *on*, *off* (default: *on*)
- **currency** : specific cache by currency, possible values : *on*, *off* (default: *on*)
- **customer** : specific cache by customer, possible values : *on*, *off* (default: **off**)
- **admin** : specific cache by administator, possible values : *on*, *off* (default: *off*)
- **role** : specific cache by role (none, customer, admin), possible values : *on*, *off* (default: *off*)

You can add as many arguments as you need. These arguments will be used to generate a unique key.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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

3866d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2196919?v=4)[thelia](/maintainers/thelia)[@thelia](https://github.com/thelia)

---

Top Contributors

[![gillesbourgeat](https://avatars.githubusercontent.com/u/7335734?v=4)](https://github.com/gillesbourgeat "gillesbourgeat (2 commits)")[![roadster31](https://avatars.githubusercontent.com/u/2197734?v=4)](https://github.com/roadster31 "roadster31 (2 commits)")

### Embed Badge

![Health badge](/badges/thelia-smarty-cache-module/health.svg)

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

###  Alternatives

[beryllium/cachebundle

Provides an interface to Memcache for Symfony2 applications

32136.0k](/packages/beryllium-cachebundle)

PHPackages © 2026

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