public function cleanup()
	{
		$conn = $this->_dbm->acquire( $this->_dbname );

		try
		{
			$date = date( 'Y-m-d H:i:00' );
			$search = new MW_Common_Criteria_SQL( $conn );
			$search->setConditions( $search->compare( '<', $this->_searchConfig['cache.expire']['code'], $date ) );

			$types = $this->_getSearchTypes( $this->_searchConfig );
			$translations = $this->_getSearchTranslations( $this->_searchConfig );
			$conditions = $search->getConditionString( $types, $translations );

			$stmt = $conn->create( str_replace( ':cond', $conditions, $this->_sql['delete'] ) );
			$stmt->bind( 1, $this->_siteid, MW_DB_Statement_Abstract::PARAM_INT );
			$stmt->execute()->finish();

			$this->_dbm->release( $conn, $this->_dbname );
		}
		catch( Exception $e )
		{
			$this->_dbm->release( $conn, $this->_dbname );
			throw $e;
		}
	}
public function cleanup()
	{
		$conn = $this->_dbm->acquire( $this->_dbname );

		try
		{
			$date = date( 'Y-m-d H:i:00' );
			$search = new MW_Common_Criteria_SQL( $conn );
			$search->setConditions( $search->compare( '<', $this->_searchConfig['cache.expire']['code'], $date ) );

			$types = $this->_getSearchTypes( $this->_searchConfig );
			$translations = $this->_getSearchTranslations( $this->_searchConfig );
			$conditions = $search->getConditionString( $types, $translations );

			$stmt = $conn->create( str_replace( ':cond', $conditions, $this->_sql['delete'] ) );
			$stmt->bind( 1, $this->_siteid, MW_DB_Statement_Abstract::PARAM_INT );
			$stmt->execute()->finish();

			$this->_dbm->release( $conn, $this->_dbname );
		}
		catch( Exception $e )
		{
			$this->_dbm->release( $conn, $this->_dbname );
			throw $e;
		}
	}
public function cleanup ( ) { $ conn = $ this -> _dbm -> acquire ( $ this -> _dbname ) ; try { $ date = date ( 'Y-m-d H:i:00' ) ; $ search = new MW_Common_Criteria_SQL ( $ conn ) ; $ search -> setConditions ( $ search -> compare ( '<' , $ this -> _searchConfig [ 'cache.expire' ] [ 'code' ] , $ date ) ) ; $ types = $ this -> _getSearchTypes ( $ this -> _searchConfig ) ; $ translations = $ this -> _getSearchTranslations ( $ this -> _searchConfig ) ; $ conditions = $ search -> getConditionString ( $ types , $ translations ) ; $ stmt = $ conn -> create ( str_replace ( ':cond' , $ conditions , $ this -> _sql [ 'delete' ] ) ) ; $ stmt -> bind ( 1 , $ this -> _siteid , MW_DB_Statement_Abstract :: PARAM_INT ) ; $ stmt -> execute ( ) -> finish ( ) ; $ this -> _dbm -> release ( $ conn , $ this -> _dbname ) ; } catch ( Exception $ e ) { $ this -> _dbm -> release ( $ conn , $ this -> _dbname ) ; throw $ e ; } }
Removes all expired cache entries.

@inheritDoc

@throws MW_Cache_Exception If the cache server doesn't respond
Removes all expired cache entries .