src/Comodojo/SimpleCache/Providers/AbstractEnhancedProvider.php 1 location
|
@@ 292-310 (lines=19) @@
|
| 289 |
|
|
| 290 |
|
} |
| 291 |
|
|
| 292 |
|
public function test() { |
| 293 |
|
|
| 294 |
|
if ( $this->driver->test() ) { |
| 295 |
|
|
| 296 |
|
$this->setState(self::CACHE_SUCCESS); |
| 297 |
|
|
| 298 |
|
return true; |
| 299 |
|
|
| 300 |
|
} |
| 301 |
|
|
| 302 |
|
$error = $this->driver->getName()." driver unavailable, disabling provider ".$this->getId()." administratively"; |
| 303 |
|
|
| 304 |
|
$this->logger->error($error); |
| 305 |
|
|
| 306 |
|
$this->setState(self::CACHE_ERROR, $error); |
| 307 |
|
|
| 308 |
|
return false; |
| 309 |
|
|
| 310 |
|
} |
| 311 |
|
|
| 312 |
|
} |
| 313 |
|
|
src/Comodojo/Cache/Providers/AbstractEnhancedProvider.php 1 location
|
@@ 212-230 (lines=19) @@
|
| 209 |
|
/** |
| 210 |
|
* {@inheritdoc} |
| 211 |
|
*/ |
| 212 |
|
public function test() { |
| 213 |
|
|
| 214 |
|
if ( $this->driver->test() ) { |
| 215 |
|
|
| 216 |
|
$this->setState(self::CACHE_SUCCESS); |
| 217 |
|
|
| 218 |
|
return true; |
| 219 |
|
|
| 220 |
|
} |
| 221 |
|
|
| 222 |
|
$error = $this->driver->getName()." driver unavailable, disabling provider ".$this->getId()." administratively"; |
| 223 |
|
|
| 224 |
|
$this->logger->error($error); |
| 225 |
|
|
| 226 |
|
$this->setState(self::CACHE_ERROR, $error); |
| 227 |
|
|
| 228 |
|
return false; |
| 229 |
|
|
| 230 |
|
} |
| 231 |
|
|
| 232 |
|
/** |
| 233 |
|
* {@inheritdoc} |