소스 검색

restore clearcache second arg as non required

Olivier Massot 4 년 전
부모
커밋
fd39790384
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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);