public static function runCacheCollector($iblockType = null, $iblockCode = null)
    {
        if (!$iblockType || !$iblockCode) {
            $iblock = IblockTable::query()
                ->setFilter(['!CODE' => false])
                ->setLimit(1)
                ->setSelect(['IBLOCK_TYPE_ID', 'CODE'])
                ->exec()
                ->fetch();

            $iblockType = $iblock['IBLOCK_TYPE_ID'];
            $iblockCode = $iblock['CODE'];
        }

        $finder = new static(['type' => $iblockType, 'code' => $iblockCode]);
        $finder->code();
    }
public static function runCacheCollector($iblockType = null, $iblockCode = null)
    {
        if (!$iblockType || !$iblockCode) {
            $iblock = IblockTable::query()
                ->setFilter(['!CODE' => false])
                ->setLimit(1)
                ->setSelect(['IBLOCK_TYPE_ID', 'CODE'])
                ->exec()
                ->fetch();

            $iblockType = $iblock['IBLOCK_TYPE_ID'];
            $iblockCode = $iblock['CODE'];
        }

        $finder = new static(['type' => $iblockType, 'code' => $iblockCode]);
        $finder->code();
    }
public static function runCacheCollector ( $ iblockType = null , $ iblockCode = null ) { if ( ! $ iblockType || ! $ iblockCode ) { $ iblock = IblockTable :: query ( ) -> setFilter ( [ '!CODE' => false ] ) -> setLimit ( 1 ) -> setSelect ( [ 'IBLOCK_TYPE_ID' , 'CODE' ] ) -> exec ( ) -> fetch ( ) ; $ iblockType = $ iblock [ 'IBLOCK_TYPE_ID' ] ; $ iblockCode = $ iblock [ 'CODE' ] ; } $ finder = new static ( [ 'type' => $ iblockType , 'code' => $ iblockCode ] ) ; $ finder -> code ( ) ; }
Preliminary collection of cache.

@param string $iblockType Type of info block.
@param string $iblockCode Code of info block.
Preliminary collection of cache .