purgePageCache() public method

Purge the page cache
public purgePageCache ( )
 /**
  * Overwrite for Automator::purgePageCache
  * Makes sure the forum layout is regenerated
  */
 public function purgePageCache()
 {
     $automator = new Automator();
     $automator->purgePageCache();
     System::getContainer()->get('phpbb_bridge.connector')->generateForumLayoutFiles();
     $this->log('Purged the phpbb forum cache', __METHOD__, TL_CRON);
 }
Ejemplo n.º 2
0
 /**
  * Handle the page AJAX action
  */
 protected function handlePageAction()
 {
     $automator = new Automator();
     $automator->purgePageCache();
     header('HTTP/1.1 200 OK');
     die('OK');
 }