toa/apc-bundle

Symfony2的APC Bundle

安装: 87

依赖: 0

建议者: 0

安全性: 0

星标: 0

关注者: 2

分支: 0

开放问题: 0

类型:symfony-bundle

dev-master 2013-12-14 07:47 UTC

This package is not auto-updated.

Last update: 2024-09-23 15:25:29 UTC


README

此Bundle在缓存预热后的第一个请求中清除APC缓存。

Build Status Code Coverage Scrutinizer Quality Score Dependency Status

SensioLabsInsight Latest Stable Version Total Downloads

安装

将此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