classes/item/ElementItem.php
protected function setCachedData()
    {
        if (empty($this->iElementID)) {
            return;
        }

        $arCacheTags = static::getCacheTag();
        $sCacheKey = $this->iElementID;

        $this->arModelData = CCache::get($arCacheTags, $sCacheKey);
        if (!$this->isEmpty()) {
            return;
        }

        $this->setData();

        //Set cache data
        CCache::forever($arCacheTags, $sCacheKey, $this->arModelData);
    }
protected function setCachedData()
    {
        if (empty($this->iElementID)) {
            return;
        }

        $arCacheTags = static::getCacheTag();
        $sCacheKey = $this->iElementID;

        $this->arModelData = CCache::get($arCacheTags, $sCacheKey);
        if (!$this->isEmpty()) {
            return;
        }

        $this->setData();

        //Set cache data
        CCache::forever($arCacheTags, $sCacheKey, $this->arModelData);
    }
protected function setCachedData ( ) { if ( empty ( $ this -> iElementID ) ) { return ; } $ arCacheTags = static :: getCacheTag ( ) ; $ sCacheKey = $ this -> iElementID ; $ this -> arModelData = CCache :: get ( $ arCacheTags , $ sCacheKey ) ; if ( ! $ this -> isEmpty ( ) ) { return ; } $ this -> setData ( ) ; //Set cache data CCache :: forever ( $ arCacheTags , $ sCacheKey , $ this -> arModelData ) ; }
Set cached brand data
Set cached brand data