[BUGFIX] Flush caches in group should throw exception
If a not existent cache group is specified to the flushCachesInGroup methods, there is no indication that actually nothing happened. Throw an exception instead, so that calling code can easily be fixed. Resolves: #58465 Releases: 6.2 Change-Id: I9617fcee9abfa27a9cb76a3fd12543c62420e719 Reviewed-on: https://review.typo3.org/26981 Reviewed-by: Anja Leichsenring Tested-by: Anja Leichsenring Reviewed-by: Felix Oertel Tested-by: Felix Oertel
Showing
- typo3/sysext/core/Classes/Cache/CacheManager.php 10 additions, 0 deletionstypo3/sysext/core/Classes/Cache/CacheManager.php
- typo3/sysext/core/Classes/Cache/Exception/NoSuchCacheGroupException.php 35 additions, 0 deletions...ore/Classes/Cache/Exception/NoSuchCacheGroupException.php
- typo3/sysext/core/Tests/Unit/Cache/CacheManagerTest.php 18 additions, 0 deletionstypo3/sysext/core/Tests/Unit/Cache/CacheManagerTest.php
Please register or sign in to comment