Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $list = new \Concrete\Core\Page\PageList();
- $list->ignorePermissions();
- $pages = $list->getResults();
- $count = 0;
- /** @var \Concrete\Core\Page\Page $page */
- foreach ($pages as $page) {
- $page->clearPagePaths();
- $page->rescanCollectionPath();
- ++$count;
- }
- echo sprintf('%d pages rescanned.', $count);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement