1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
clear_component_cache.php
См. документацию.
1
<?
2
require(
$_SERVER
[
"DOCUMENT_ROOT"
].
"/bitrix/modules/main/include/prolog_admin_before.php"
);
3
require(
$_SERVER
[
"DOCUMENT_ROOT"
].
"/bitrix/modules/main/include/prolog_admin_js.php"
);
5
global
$USER
;
7
global
$CACHE_MANAGER
;
8
9
if
(!
$USER
->CanDoOperation(
'cache_control'
) || !
check_bitrix_sessid
())
10
die
(
GetMessage
(
"ACCESS_DENIED"
));
11
12
if
($_GET[
"site_id"
] ==
''
)
13
die
(
"Empty site_id."
);
14
15
$sites
= CSite::GetByID($_GET[
"site_id"
]);
16
if
(!(
$site
=
$sites
->Fetch()))
17
die
(
"Incorrect site_id."
);
18
19
$aComponents
= explode(
","
, $_GET[
"component_name"
]);
20
foreach
(
$aComponents
as $component_name)
21
{
22
CBitrixComponent::clearComponentCache($component_name,
$site
[
"ID"
]);
23
}
24
require(
$_SERVER
[
"DOCUMENT_ROOT"
].
"/bitrix/modules/main/include/epilog_admin_js.php"
);
25
?>
$sites
$sites
Определения
clear_component_cache.php:15
$aComponents
$aComponents
Определения
clear_component_cache.php:19
$CACHE_MANAGER
global $CACHE_MANAGER
Определения
clear_component_cache.php:7
$_SERVER
$_SERVER["DOCUMENT_ROOT"]
Определения
cron_frame.php:9
$USER
global $USER
Определения
csv_new_run.php:40
check_bitrix_sessid
check_bitrix_sessid($varname='sessid')
Определения
tools.php:4686
GetMessage
GetMessage($name, $aReplace=null)
Определения
tools.php:3397
die
die
Определения
quickway.php:367
$site
$site
Определения
yandex_run.php:614
bitrix
modules
main
public
clear_component_cache.php
Создано системой
1.14.0