PHPackages                             inspiredminds/contao-future-cache-invalidation - 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. inspiredminds/contao-future-cache-invalidation

ActiveContao-bundle[Caching](/categories/caching)

inspiredminds/contao-future-cache-invalidation
==============================================

Invalidates cache tags in the future for any DCA in Contao that has a `start` or `stop` field.

1.2.0(10mo ago)0973↓16.7%LGPL-3.0-or-laterPHPPHP &gt;=8.1

Since Mar 31Pushed 10mo ago2 watchersCompare

[ Source](https://github.com/inspiredminds/contao-future-cache-invalidation)[ Packagist](https://packagist.org/packages/inspiredminds/contao-future-cache-invalidation)[ Docs](https://github.com/inspiredminds/contao-future-cache-invalidation)[ GitHub Sponsors](https://github.com/sponsors/fritzmg)[ RSS](/packages/inspiredminds-contao-future-cache-invalidation/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (9)Versions (6)Used By (0)

[![](https://camo.githubusercontent.com/ea0107ef9567a47c44763dc1b10fad36cb9fa824e0143c2422f8626d7c4de7ed/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f696e7370697265646d696e64732f636f6e74616f2d6675747572652d63616368652d696e76616c69646174696f6e2e737667)](https://packagist.org/packages/inspiredminds/contao-future-cache-invalidation)[![](https://camo.githubusercontent.com/8ba24f61d9dc1f00e3aa21e9455f90c577cfa30a4ca1ceb826660fdc5473e629/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f696e7370697265646d696e64732f636f6e74616f2d6675747572652d63616368652d696e76616c69646174696f6e2e737667)](https://packagist.org/packages/inspiredminds/contao-future-cache-invalidation)

Contao Future Cache Invalidation
================================

[](#contao-future-cache-invalidation)

Invalidates cache tags in the future for any DCA that has a `start` or `stop` field.

In Contao **5** you will only need to route the message manually:

```
# config/config.yaml
framework:
    messenger:
        routing:
            'InspiredMinds\ContaoFutureCacheInvalidation\Message\InvalidateCacheMessage': contao_prio_high
```

In Contao **4.13** you will also have to create a messenger transport, e.g.:

```
framework:
    messenger:
        transports:
            cache_invalidation: 'doctrine://default?queue_name=cache_invalidation'
        routing:
            'InspiredMinds\ContaoFutureCacheInvalidation\Message\InvalidateCacheMessage': cache_invalidation
```

If you use such a `doctrine://` transport you will also have to install `symfony/doctrine-messenger`:

```
composer require symfony/doctrine-messenger

```

Then you have to consume the messages somehow via

```
vendor/bin/contao-console messenger:consume cache_invalidation

```

e.g. via a `crontab` entry like this:

```
* * * * * /usr/bin/php /var/www/example.com/vendor/bin/contao-console messenger:consume cache_invalidation --time-limit=59 --quiet

```

There is still a caveat: the cache invalidation is based on the `contao.db.*.*` cache tags. However, this will not work for the `start` case, as the cache tag would be missing for that URL. For child elements like articles, content elements or news (child of a news archive) it will still work as the extension will also invalidate the tags of the parent. But for pages for example this would not be solved this way - i.e. when you have a `start` time for page, it would still not show up in the menu of cached pages. In this case the extension clears the *whole* cache instead.

*Note:* as this utilizes the Symfony Messenger with its `DelayStamp` it will only work for the following messenger transport types:

- `doctrine`
- `amqp`
- `redis`

There is also a command with which you can create these future cache invalidation messages for all existing database entries after installation:

```
vendor/bin/contao-console contao_future_cache_invalidation:create-messages

```

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance53

Moderate activity, may be stable

Popularity19

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity50

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

Every ~21 days

Total

5

Last Release

329d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/25f6ec05570f72d0fcc4d0a4fef2309799d53badf8b30484284e73724661e0d8?d=identicon)[fritzmg](/maintainers/fritzmg)

---

Top Contributors

[![fritzmg](https://avatars.githubusercontent.com/u/4970961?v=4)](https://github.com/fritzmg "fritzmg (14 commits)")

### Embed Badge

![Health badge](/badges/inspiredminds-contao-future-cache-invalidation/health.svg)

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

###  Alternatives

[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[contao/manager-bundle

Provides the Contao Managed Edition

181.3M61](/packages/contao-manager-bundle)

PHPackages © 2026

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