Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit 40234c8

Browse files
author
Jamie Snape
committed
Fix caching
1 parent b04473c commit 40234c8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

library/Zend/Cache/Backend/Libmemcached.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ class Zend_Cache_Backend_Libmemcached extends Zend_Cache_Backend implements Zend
9696
*/
9797
public function __construct(array $options = array())
9898
{
99-
if (!extension_loaded('memcached') || session_save_path() !== 'Memcache') {
99+
if (!extension_loaded('memcached') && session_save_path() !== 'Memcache') {
100100
Zend_Cache::throwException('The memcached extension must be loaded for using this backend !');
101101
}
102102

library/Zend/Cache/Backend/Memcached.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ class Zend_Cache_Backend_Memcached extends Zend_Cache_Backend implements Zend_Ca
119119
*/
120120
public function __construct(array $options = array())
121121
{
122-
if (!extension_loaded('memcache') || session_save_path() !== 'Memcache') {
122+
if (!extension_loaded('memcache') && session_save_path() !== 'Memcache') {
123123
Zend_Cache::throwException('The memcache extension must be loaded for using this backend !');
124124
}
125125
parent::__construct($options);

0 commit comments

Comments
 (0)