Explorar o código

restore clearcache second arg as non required

Olivier Massot %!s(int64=4) %!d(string=hai) anos
pai
achega
fd39790384
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      ot_core/Classes/Cache/OtCacheManager.php

+ 1 - 1
ot_core/Classes/Cache/OtCacheManager.php

@@ -29,7 +29,7 @@ class OtCacheManager
      * @param int $pageUid
      * @param bool $clearAll if true, all caches will be cleared, and not only the frontend one
      */
-    public static function clearSiteCache(int $pageUid, bool $clearAll) {
+    public static function clearSiteCache(int $pageUid, bool $clearAll = false) {
 
         $pageRepository = GeneralUtility::makeInstance(ObjectManager::class)->get(OtPageRepository::class);
         $rootPage = $pageRepository->getRootPageFor($pageUid);