public function remove($id)
{
$this->checkCacheConsistency();
$result = parent::remove($id);
// using func_get_arg() to be compatible with the interface
// when the 2ng argument is true, do not clean the cache tags
if ($result && func_num_args() > 1 && func_get_arg(1) !== true) {
$this->getDb()->delete("cache_tags", "id = '" . $id . "'");
}
// security check if the deletion fails
if (!$result && $this->_memcache->get($id) !== false) {
$this->_memcache->flush();
}
return $result;
}