From 3069eaf35e833ffe4a1c1c7829dd7e168ae27420 Mon Sep 17 00:00:00 2001 From: Ciro Mattia Gonano Date: Wed, 11 Sep 2013 15:56:48 +0200 Subject: Merge up to r3319 --- framework/Caching/TAPCCache.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'framework/Caching/TAPCCache.php') diff --git a/framework/Caching/TAPCCache.php b/framework/Caching/TAPCCache.php index 53e3e388..8826fac6 100644 --- a/framework/Caching/TAPCCache.php +++ b/framework/Caching/TAPCCache.php @@ -6,7 +6,7 @@ * @link http://www.pradosoft.com/ * @copyright Copyright © 2005-2013 PradoSoft * @license http://www.pradosoft.com/license/ - * @version $Id: TAPCCache.php 3245 2013-01-07 20:23:32Z ctrlaltca $ + * @version $Id: TAPCCache.php 3281 2013-03-13 21:01:40Z ctrlaltca $ * @package System.Caching */ @@ -41,7 +41,7 @@ * * @author Alban Hanry * @author Knut Urdalen - * @version $Id: TAPCCache.php 3245 2013-01-07 20:23:32Z ctrlaltca $ + * @version $Id: TAPCCache.php 3281 2013-03-13 21:01:40Z ctrlaltca $ * @package System.Caching * @since 3.0b */ @@ -103,11 +103,7 @@ class TAPCCache extends TCache */ protected function addValue($key,$value,$expire) { - if(function_exists('apc_add')) { - return apc_add($key,$value,$expire); - } else { - throw new TNotSupportedException('apccache_add_unsupported'); - } + return apc_add($key,$value,$expire); } /** -- cgit v1.2.3