diff --git a/classes/CacheCIBlockElement.php b/classes/CacheCIBlockElement.php
new file mode 100644
index 0000000..822b243
--- /dev/null
+++ b/classes/CacheCIBlockElement.php
@@ -0,0 +1,24 @@
+ self::$lifeTime,'cache_joins' => true);
+ }
+ return \Bitrix\Iblock\ElementTable::getList($params);
+
+ }
+
+ return false;
+
+ }
+}
\ No newline at end of file
diff --git a/getLastNews.php b/getLastNews.php
new file mode 100644
index 0000000..6d46f27
--- /dev/null
+++ b/getLastNews.php
@@ -0,0 +1,14 @@
+ $item)
+ {
+ echo 'НАЗВАНИЕ: ' . $item['title'] . "
" . 'ССЫЛКА: ' . $item['link'] . "
" . 'ОПИСАНИЕ: ' .$item['description'] . "
";
+ }
+
+}
+require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/epilog_after.php");
diff --git a/index.php b/index.php
new file mode 100644
index 0000000..0b25708
--- /dev/null
+++ b/index.php
@@ -0,0 +1,21 @@
+
+require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php");
+require($_SERVER["DOCUMENT_ROOT"]."/test/classes/CacheCIBlockElement.php");
+
+$params = array(
+ 'select' => array("ID", "NAME", "PREVIEW_TEXT"),
+ 'filter' => array("IBLOCK_ID" => 5, "ACTIVE" => "Y"),
+ 'group' => array(),
+ 'order'=> array('ID' => 'ASC'),
+ 'limit'=> 10
+);
+
+
+if ($res = CacheClasses\CacheCIBlockElement::GetList($params))
+{
+ while ($arFields = $res->Fetch()) {
+ echo '
' . print_r($arFields, 1) . ''; + } +} + +require($_SERVER["DOCUMENT_ROOT"]."/bitrix/footer.php"); \ No newline at end of file