PHPackages                             itinance/doctrine-cache-adapter-with-site-context - 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. itinance/doctrine-cache-adapter-with-site-context

ActiveLibrary[Caching](/categories/caching)

itinance/doctrine-cache-adapter-with-site-context
=================================================

v0.3(9y ago)114PHPPHP &gt;=5.4.4

Since Sep 13Pushed 9y ago1 watchersCompare

[ Source](https://github.com/itinance/doctrine-cache-adapter-with-site-context)[ Packagist](https://packagist.org/packages/itinance/doctrine-cache-adapter-with-site-context)[ RSS](/packages/itinance-doctrine-cache-adapter-with-site-context/feed)WikiDiscussions master Synced 2w ago

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

DoctrineCacheAdapterWithSiteContext
===================================

[](#doctrinecacheadapterwithsitecontext)

If you are using Emanuele Minottos [TwigCacheBundle](https://github.com/EmanueleMinotto/TwigCacheBundle) and Simon Ochos white-label-bundle (), you will get trouble with the cache.

This class is a replacement for the Cache Adapter used in TwigCacheBundle, to respect the current site context in a white-label / multi-site environment.

Installation:
-------------

[](#installation)

Installation using composer:

```
    "repositories": [
        {
            "type": "git",
            "url": "git@github.com:itinance/DoctrineCacheAdapterWithSiteContext.git"
        }
    ],
    "require": {
        "itinance/DoctrineCacheAdapterWithSiteContext": "dev-master"
    },

```

Configuration
-------------

[](#configuration)

in app/config/services.yml add the following

```
    twig_cache.adapter:
        class: itinance\DoctrineCacheAdapterWithSiteContext
        arguments:
            - @cache_service
            - @site_context

```

@cache\_service could be configured like this:

```
    memcached:
        class: Memcached
        calls:
            - [ addServers, [ %memcached.servers% ] ]

    cache_service:
        class: Doctrine\Common\Cache\MemcachedCache
        calls:
            - [ setMemcached, [ @memcached ] ]

```

###  Health Score

23

—

LowBetter than 25% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

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

Total

2

Last Release

3424d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4bdfaccd9eaf060eef8c7270c5dc5da7a255ee7f7393da0640847074bfcb96c5?d=identicon)[itinance](/maintainers/itinance)

---

Top Contributors

[![itinance](https://avatars.githubusercontent.com/u/1758597?v=4)](https://github.com/itinance "itinance (6 commits)")

### Embed Badge

![Health badge](/badges/itinance-doctrine-cache-adapter-with-site-context/health.svg)

```
[![Health](https://phpackages.com/badges/itinance-doctrine-cache-adapter-with-site-context/health.svg)](https://phpackages.com/packages/itinance-doctrine-cache-adapter-with-site-context)
```

###  Alternatives

[iazaran/smart-cache

Smart Cache is a caching optimization package designed to enhance the way your Laravel application handles data caching. It intelligently manages large data sets by compressing, chunking, or applying other optimization strategies to keep your application performant and efficient.

21114.2k](/packages/iazaran-smart-cache)[phpfastcache/phpssdb

PHP SSDB Driver for phpFastCache

14736.9k1](/packages/phpfastcache-phpssdb)[rapidwebltd/rw-file-cache

RW File Cache is a PHP File-based Caching Library. Its syntax is designed to closely resemble the PHP memcache extension.

15196.8k7](/packages/rapidwebltd-rw-file-cache)[yuzuru-s/redis-recommend

Wrapping Redis's sorted set APIs for specializing recommending operations.

392.9k](/packages/yuzuru-s-redis-recommend)[ichhabrecht/intcache

Turn uncachable page objects into cacheable links

193.9k](/packages/ichhabrecht-intcache)

PHPackages © 2026

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