| Conditions | 2 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | public static function configureCache(): void |
||
| 40 | { |
||
| 41 | $cacheKey = Configure::read('Saito.Settings.uploader')->getCacheKey(); |
||
| 42 | if (Cache::getConfig($cacheKey) !== null) { |
||
| 43 | return; |
||
| 44 | } |
||
| 45 | |||
| 46 | Cache::setConfig( |
||
| 47 | $cacheKey, |
||
| 48 | [ |
||
| 49 | 'className' => 'File', |
||
| 50 | 'prefix' => 'saito_thumbnails-', |
||
| 51 | 'path' => CACHE, |
||
| 52 | 'groups' => ['uploads'], |
||
| 53 | 'duration' => '+1 year', |
||
| 54 | ] |
||
| 58 |