| @@ 102-106 (lines=5) @@ | ||
| 99 | $files = $this->cache->delete_all(); |
|
| 100 | /** clear Doctrine cache */ |
|
| 101 | $this->getCache()->deleteAll(); |
|
| 102 | if ($files) { |
|
| 103 | $message = lang('Files deleted', 'admin') . ':' . $files; |
|
| 104 | } else { |
|
| 105 | $message = lang('Cache has been cleared', 'admin'); |
|
| 106 | } |
|
| 107 | break; |
|
| 108 | ||
| 109 | case 'expried': |
|
| @@ 111-115 (lines=5) @@ | ||
| 108 | ||
| 109 | case 'expried': |
|
| 110 | $files = $this->cache->Clean(); |
|
| 111 | if ($files) { |
|
| 112 | $message = lang('Outdated files have been deleted', 'admin') . $files; |
|
| 113 | } else { |
|
| 114 | $message = lang('Cache has been cleared', 'admin'); |
|
| 115 | } |
|
| 116 | break; |
|
| 117 | default: |
|
| 118 | $message = lang('Clearing cache error', 'admin'); |
|