kernel/private/classes/clusterfilehandlers/ezdfsfilehandler.php
public function startCacheGeneration()
    {
        eZDebugSetting::writeDebug( 'kernel-clustering', "Starting cache generation", "dfs::startCacheGeneration( '{$this->filePath}' )" );

        $generatingFilePath = $this->filePath . '.generating';
        try {
            $ret = self::$dbbackend->_startCacheGeneration( $this->filePath, $generatingFilePath );
        } catch( RuntimeException $e ) {
            eZDebug::writeError( $e->getMessage() );
            return false;
        }

        // generation granted
        if ( $ret['result'] == 'ok' )
        {
            eZClusterFileHandler::addGeneratingFile( $this );
            $this->realFilePath = $this->filePath;
            $this->filePath = $generatingFilePath;
            $this->generationStartTimestamp = $ret['mtime'];
            return true;
        }
        // failure: the file is being generated
        elseif ( $ret['result'] == 'ko' )
        {
            return $ret['remaining'];
        }
        // unhandled error case, should not happen
        else
        {
            eZLog::write( "An error occured starting cache generation on '$generatingFilePath'", 'cluster.log' );
            return false;
        }
    }
public function startCacheGeneration()
    {
        eZDebugSetting::writeDebug( 'kernel-clustering', "Starting cache generation", "dfs::startCacheGeneration( '{$this->filePath}' )" );

        $generatingFilePath = $this->filePath . '.generating';
        try {
            $ret = self::$dbbackend->_startCacheGeneration( $this->filePath, $generatingFilePath );
        } catch( RuntimeException $e ) {
            eZDebug::writeError( $e->getMessage() );
            return false;
        }

        // generation granted
        if ( $ret['result'] == 'ok' )
        {
            eZClusterFileHandler::addGeneratingFile( $this );
            $this->realFilePath = $this->filePath;
            $this->filePath = $generatingFilePath;
            $this->generationStartTimestamp = $ret['mtime'];
            return true;
        }
        // failure: the file is being generated
        elseif ( $ret['result'] == 'ko' )
        {
            return $ret['remaining'];
        }
        // unhandled error case, should not happen
        else
        {
            eZLog::write( "An error occured starting cache generation on '$generatingFilePath'", 'cluster.log' );
            return false;
        }
    }
public function startCacheGeneration ( ) { eZDebugSetting :: writeDebug ( 'kernel-clustering' , "Starting cache generation" , "dfs::startCacheGeneration( '{$this->filePath}' )" ) ; $ generatingFilePath = $ this -> filePath . '.generating' ; try { $ ret = self :: $ dbbackend -> _startCacheGeneration ( $ this -> filePath , $ generatingFilePath ) ; } catch ( RuntimeException $ e ) { eZDebug :: writeError ( $ e -> getMessage ( ) ) ; return false ; } // generation granted if ( $ ret [ 'result' ] == 'ok' ) { eZClusterFileHandler :: addGeneratingFile ( $ this ) ; $ this -> realFilePath = $ this -> filePath ; $ this -> filePath = $ generatingFilePath ; $ this -> generationStartTimestamp = $ ret [ 'mtime' ] ; return true ; } // failure: the file is being generated elseif ( $ ret [ 'result' ] == 'ko' ) { return $ ret [ 'remaining' ] ; } // unhandled error case, should not happen else { eZLog :: write ( "An error occured starting cache generation on '$generatingFilePath'" , 'cluster.log' ) ; return false ; } }
Starts cache generation for the current file.

This is done by creating a file named by the original file name, prefixed
with '.generating'.

@return bool false if the file is being generated, true if it is not
Starts cache generation for the current file .