Esempio n. 1
0
	/**
	 * Overload: because of the DDL_MODE tablename escaping is a bit dodgy
	 */
	public function purgeCache() {
		# We can't guarantee that the user will be able to use TRUNCATE,
		# but we know that DELETE is available to us
		$this->output( "Purging caches..." );
		$this->db->delete( '/*Q*/' . $this->db->tableName( 'objectcache' ), '*', __METHOD__ );
		$this->output( "done.\n" );
	}
Esempio n. 2
0
 /**
  * Overload: after this action field info table has to be rebuilt
  *
  * @param $what array
  */
 public function doUpdates($what = array('core', 'extensions', 'purge', 'stats'))
 {
     parent::doUpdates($what);
     $this->db->query('BEGIN fill_wiki_info; END;');
 }