Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
41 | public static function clearCache() |
||
42 | { |
||
43 | self::setTranslator(); |
||
44 | |||
45 | CacheCore::getInstance()->getEngine()->clear(); |
||
46 | FlashMessages::getInstance()::setSuccess(self::$translator->trans('cache-cleared-successfully')); |
||
47 | if (Schema::deleteSummaryFiles()) { |
||
48 | FlashMessages::getInstance()::setSuccess(self::$translator->trans('summary-files-deleted-successfully')); |
||
49 | return true; |
||
50 | } |
||
51 | FlashMessages::getInstance()::setError(self::$translator->trans('error-deleting-summary-files')); |
||
52 | return false; |
||
53 | } |
||
63 |