itinance/doctrine-cache-adapter-with-site-context
最新稳定版本:v0.3
Composer 安装命令:
composer require itinance/doctrine-cache-adapter-with-site-context
包简介
README 文档
README
If you are using Emanuele Minottos TwigCacheBundle and Simon Ochos white-label-bundle (https://github.com/simonoche/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 using composer:
"repositories": [
{
"type": "git",
"url": "git@github.com:itinance/DoctrineCacheAdapterWithSiteContext.git"
}
],
"require": {
"itinance/DoctrineCacheAdapterWithSiteContext": "dev-master"
},
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 ] ]
统计信息
- 总下载量: 14
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 1
其他信息
- 授权协议: Unknown
- 更新时间: 2015-09-13