Files
Phraseanet/lib/Alchemy/Phrasea/Cache/ApcCache.php
Nicolas Le Goff 3e0c9fce74 add cache driver
2012-02-17 19:00:11 +01:00

30 lines
564 B
PHP

<?php
/*
* This file is part of Phraseanet
*
* (c) 2005-2010 Alchemy
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Alchemy\Phrasea\Cache;
use Doctrine\Common\Cache\ApcCache as DoctrineApc;
/**
*
* @package
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
* @link www.phraseanet.com
*/
class ApcCache extends DoctrineApc implements Cache
{
public function flushAll()
{
return apc_clear_cache() && apc_clear_cache('user');
}
}