kernel/classes/ezcontentlanguage.php
static function expireCache( $expireCluster = true )
    {
        unset( $GLOBALS['eZContentLanguageList'],
               $GLOBALS['eZContentLanguagePrioritizedLanguages'],
               $GLOBALS['eZContentLanguageMask'],
               $GLOBALS['eZContentLanguageCronjobMode'] );

        // With the solution to #14227 we also need to clear the cached
        // list of languages
        if ( $expireCluster )
        {
            $cachePath = eZSys::cacheDirectory() . '/ezcontentlanguage_cache.php';
            eZClusterFileHandler::instance()->fileDelete( $cachePath );
        }
    }
static function expireCache( $expireCluster = true )
    {
        unset( $GLOBALS['eZContentLanguageList'],
               $GLOBALS['eZContentLanguagePrioritizedLanguages'],
               $GLOBALS['eZContentLanguageMask'],
               $GLOBALS['eZContentLanguageCronjobMode'] );

        // With the solution to #14227 we also need to clear the cached
        // list of languages
        if ( $expireCluster )
        {
            $cachePath = eZSys::cacheDirectory() . '/ezcontentlanguage_cache.php';
            eZClusterFileHandler::instance()->fileDelete( $cachePath );
        }
    }
static function expireCache ( $ expireCluster = true ) { unset ( $ GLOBALS [ 'eZContentLanguageList' ] , $ GLOBALS [ 'eZContentLanguagePrioritizedLanguages' ] , $ GLOBALS [ 'eZContentLanguageMask' ] , $ GLOBALS [ 'eZContentLanguageCronjobMode' ] ) ; // With the solution to #14227 we also need to clear the cached // list of languages if ( $ expireCluster ) { $ cachePath = eZSys :: cacheDirectory ( ) . '/ezcontentlanguage_cache.php' ; eZClusterFileHandler :: instance ( ) -> fileDelete ( $ cachePath ) ; } }
Removes all caches forcing it to read from database again for next method calls.

\static
@param bool $expireCluster whether expire cluster or not.
Removes all caches forcing it to read from database again for next method calls .