Update to CodeIgniter 2.1.0
This commit is contained in:
4
system/libraries/Cache/drivers/Cache_apc.php
Executable file → Normal file
4
system/libraries/Cache/drivers/Cache_apc.php
Executable file → Normal file
@@ -132,7 +132,7 @@ class CI_Cache_apc extends CI_Driver {
|
||||
*/
|
||||
public function is_supported()
|
||||
{
|
||||
if ( ! extension_loaded('apc') OR ! function_exists('apc_store'))
|
||||
if ( ! extension_loaded('apc') OR ini_get('apc.enabled') != "1")
|
||||
{
|
||||
log_message('error', 'The APC PHP extension must be loaded to use APC Cache.');
|
||||
return FALSE;
|
||||
@@ -148,4 +148,4 @@ class CI_Cache_apc extends CI_Driver {
|
||||
// End Class
|
||||
|
||||
/* End of file Cache_apc.php */
|
||||
/* Location: ./system/libraries/Cache/drivers/Cache_apc.php */
|
||||
/* Location: ./system/libraries/Cache/drivers/Cache_apc.php */
|
||||
|
||||
Reference in New Issue
Block a user