PHPackages                             straightsoft/contao-database\_cache - 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. [Database &amp; ORM](/categories/database)
4. /
5. straightsoft/contao-database\_cache

ActiveContao-module[Database &amp; ORM](/categories/database)

straightsoft/contao-database\_cache
===================================

This module offers functionality for caching request results to database.

1.0.6(8y ago)028LGPL-3.0+PHPPHP ~5.4 || ~7.0

Since May 7Pushed 8y ago1 watchersCompare

[ Source](https://github.com/straightsoft/contao-database_cache)[ Packagist](https://packagist.org/packages/straightsoft/contao-database_cache)[ Docs](https://github.com/straightsoft/contao-database_cache)[ RSS](/packages/straightsoft-contao-database-cache/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (2)Dependencies (3)Versions (8)Used By (0)

Contao Database Cache
=====================

[](#contao-database-cache)

This module offers functionality for caching arbitrary values to database.

Technical instructions
----------------------

[](#technical-instructions)

After activating the module and defining the maximum cache time in the contao settings, you can retrieve the result for a certain request by using the following code (of course, retrieved from cache if there's already a cached result which isn't outdated):

```
if (($strValue = DatabaseCache::getValue($strKey)) !== false)
{
    $strResult = $strValue;
}
else
{
    // do some logic in order to create $strResult
    $strResult = someFunction();
    DatabaseCache::cacheValue($strKey, $strResult);
}

```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

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

Recently: every ~52 days

Total

7

Last Release

3134d ago

PHP version history (2 changes)1.0.0PHP ~5.6 || ^7.0

1.0.5PHP ~5.4 || ~7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/740cf911b5efc29f2d004903ee3f7861f0ca19b7be12afbdec486f22e1c023a8?d=identicon)[straightsoft](/maintainers/straightsoft)

---

Top Contributors

[![straightsoft](https://avatars.githubusercontent.com/u/9200678?v=4)](https://github.com/straightsoft "straightsoft (10 commits)")

---

Tags

requestdatabasecachedbmodulecontao

### Embed Badge

![Health badge](/badges/straightsoft-contao-database-cache/health.svg)

```
[![Health](https://phpackages.com/badges/straightsoft-contao-database-cache/health.svg)](https://phpackages.com/packages/straightsoft-contao-database-cache)
```

###  Alternatives

[rah/danpu

Zero-dependency MySQL dump library for easily exporting and importing databases

62414.3k11](/packages/rah-danpu)[mg-code/yii2-helpers

A collection of useful helper classes for Yii framework 2.0

2023.1k5](/packages/mg-code-yii2-helpers)

PHPackages © 2026

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