toa / apc-bundle
Symfony2的APC Bundle
dev-master
2013-12-14 07:47 UTC
Requires
- symfony/framework-bundle: ~2.1
This package is not auto-updated.
Last update: 2024-09-23 15:25:29 UTC
README
此Bundle在缓存预热后的第一个请求中清除APC缓存。
安装
将此Bundle添加到您的composer.json
文件中
{
"require": {
"toa/apc-bundle": "dev-master"
}
}
在app/AppKernel.php
中注册Bundle
// app/AppKernel.php
public function registerBundles()
{
return array(
// ...
new Toa\Bundle\ApcBundle\ToaApcBundle(),
);
}
配置
在app/config/config.yml
中设置Bundle的配置
# app/config/config.yml
toa_apc:
auto_clear:
opcode: true # system cache
user: true # user cache