| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 43 | protected function doFlush() |
||
| 44 | { |
||
| 45 | if (ini_get('xcache.admin.enable_auth')) { |
||
| 46 | // @codeCoverageIgnoreStart |
||
| 47 | throw new \BadMethodCallException( |
||
| 48 | 'You must set "xcache.admin.enable_auth" to "Off" in your php.ini to flush cache items.' |
||
| 49 | ); |
||
| 50 | // @codeCoverageIgnoreEnd |
||
| 51 | } |
||
| 52 | |||
| 53 | xcache_clear_cache(XC_TYPE_VAR, 0); |
||
| 54 | |||
| 55 | return true; |
||
| 56 | } |
||
| 57 | } |
||
| 58 |