SHARE
TWEET

Untitled

a guest Oct 21st, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. $list = new \Concrete\Core\Page\PageList();
  4. $list->ignorePermissions();
  5. $pages = $list->getResults();
  6.  
  7. $count = 0;
  8.  
  9. /** @var \Concrete\Core\Page\Page $page */
  10. foreach ($pages as $page) {
  11.     $page->clearPagePaths();
  12.     $page->rescanCollectionPath();
  13.     ++$count;
  14. }
  15.  
  16. echo sprintf('%d pages rescanned.', $count);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top