mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 20:43:25 +00:00
35 lines
738 B
PHP
35 lines
738 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 Events\Processor\Cache\Action\Clear;
|
|
|
|
use Doctrine\Common\EventArgs;
|
|
use Events\Processor\Cache\Action\AbstractClear;
|
|
use Entities;
|
|
|
|
/**
|
|
*
|
|
* @package
|
|
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
|
|
* @link www.phraseanet.com
|
|
*/
|
|
class BasketElement extends AbstractClear
|
|
{
|
|
|
|
public function process(EventArgs $args)
|
|
{
|
|
$cache = $this->getCacheAdapter($args);
|
|
$cache->deleteBySuffix(Entities\Basket::CACHE_SUFFIX);
|
|
$cache->deleteBySuffix(Entities\BasketElement::CACHE_SUFFIX);
|
|
}
|
|
|
|
}
|