diff options
author | wei <> | 2007-01-20 23:46:35 +0000 |
---|---|---|
committer | wei <> | 2007-01-20 23:46:35 +0000 |
commit | 9e6fdda71cf70275fcf7e4b09230daa713c18b70 (patch) | |
tree | 64002b0b5215c377906ba7435adc0309573f1539 /framework/Caching/TAPCCache.php | |
parent | d11d7c6003569ae5c8994c23a533757a1f9ae981 (diff) |
minor changes to active record meta data inspector
Diffstat (limited to 'framework/Caching/TAPCCache.php')
-rw-r--r-- | framework/Caching/TAPCCache.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/framework/Caching/TAPCCache.php b/framework/Caching/TAPCCache.php index fb419911..969de4a4 100644 --- a/framework/Caching/TAPCCache.php +++ b/framework/Caching/TAPCCache.php @@ -54,9 +54,12 @@ class TAPCCache extends TCache */
public function init($config)
{
- if(!extension_loaded('apc'))
- throw new TConfigurationException('apccache_extension_required');
- parent::init($config);
+ if(substr(php_sapi_name(), 0, 3) !== 'cli') //APC is usually disabled in CLI mode.
+ {
+ if(!extension_loaded('apc'))
+ throw new TConfigurationException('apccache_extension_required');
+ parent::init($config);
+ }
}
/**
|