File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -129,6 +129,7 @@ protected function driverClear()
129129 */
130130 protected function driverConnect ()
131131 {
132+ $ this ->instance = new MemcacheSoftware ();
132133 $ servers = (!empty ($ this ->config [ 'servers ' ]) && is_array ($ this ->config [ 'servers ' ]) ? $ this ->config [ 'servers ' ] : []);
133134 if (count ($ servers ) < 1 ) {
134135 $ servers = [
Original file line number Diff line number Diff line change @@ -45,7 +45,6 @@ public function __construct(array $config = [])
4545 if (!$ this ->driverCheck ()) {
4646 throw new phpFastCacheDriverCheckException (sprintf (self ::DRIVER_CHECK_FAILURE , $ this ->getDriverName ()));
4747 } else {
48- $ this ->instance = new MemcachedSoftware ();
4948 $ this ->driverConnect ();
5049 }
5150 }
@@ -128,6 +127,7 @@ protected function driverClear()
128127 */
129128 protected function driverConnect ()
130129 {
130+ $ this ->instance = new MemcachedSoftware ();
131131 $ servers = (!empty ($ this ->config [ 'servers ' ]) && is_array ($ this ->config [ 'servers ' ]) ? $ this ->config [ 'servers ' ] : []);
132132 if (count ($ servers ) < 1 ) {
133133 $ servers = [
You can’t perform that action at this time.
0 commit comments