source/Core/Utils.php
public function setLangCache($sCacheName, $aLangCache)
    {
        $sCache = "<?php\n\$aLangCache = " . var_export($aLangCache, true) . ";\n?>";
        $sFileName = $this->getCacheFilePath($sCacheName);
        $cacheDirectory = \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('sCompileDir');

        $tmpFile = $cacheDirectory . basename($sFileName) . uniqid('.temp', true) . '.txt';
        $blRes = file_put_contents($tmpFile, $sCache, LOCK_EX);

        rename($tmpFile, $sFileName);

        return $blRes;
    }
public function setLangCache($sCacheName, $aLangCache)
    {
        $sCache = "<?php\n\$aLangCache = " . var_export($aLangCache, true) . ";\n?>";
        $sFileName = $this->getCacheFilePath($sCacheName);
        $cacheDirectory = \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('sCompileDir');

        $tmpFile = $cacheDirectory . basename($sFileName) . uniqid('.temp', true) . '.txt';
        $blRes = file_put_contents($tmpFile, $sCache, LOCK_EX);

        rename($tmpFile, $sFileName);

        return $blRes;
    }
public function setLangCache ( $ sCacheName , $ aLangCache ) { $ sCache = "<?php\n\$aLangCache = " . var_export ( $ aLangCache , true ) . ";\n?>" ; $ sFileName = $ this -> getCacheFilePath ( $ sCacheName ) ; $ cacheDirectory = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getConfigParam ( 'sCompileDir' ) ; $ tmpFile = $ cacheDirectory . basename ( $ sFileName ) . uniqid ( '.temp' , true ) . '.txt' ; $ blRes = file_put_contents ( $ tmpFile , $ sCache , LOCK_EX ) ; rename ( $ tmpFile , $ sFileName ) ; return $ blRes ; }
Writes language array to file cache

@param string $sCacheName name of cache file
@param array  $aLangCache language array

@return null
Writes language array to file cache