public function clearCacheCascade(Page $page, $depth = -1){
        if ($depth == 0) return;
        $depth--;
        foreach($page->getSubpages() as $p){
            $this->clearPage($p);
            $this->clearCacheCascade($p, $depth);
        }
    }
public function clearCacheCascade(Page $page, $depth = -1){
        if ($depth == 0) return;
        $depth--;
        foreach($page->getSubpages() as $p){
            $this->clearPage($p);
            $this->clearCacheCascade($p, $depth);
        }
    }
public function clearCacheCascade ( Page $ page , $ depth = - 1 ) { if ( $ depth == 0 ) return ; $ depth -- ; foreach ( $ page -> getSubpages ( ) as $ p ) { $ this -> clearPage ( $ p ) ; $ this -> clearCacheCascade ( $ p , $ depth ) ; } }
Clears all subpages in any depth of the given page
@param Page $page
@param int $depth
Clears all subpages in any depth of the given page