Initial commit
This commit is contained in:
20
playarea/plugins/bive-cache-control/main.php
Normal file
20
playarea/plugins/bive-cache-control/main.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
$b->admin_page_set("system", "cache", "Управление кешем", array(), "bive_cache_control", false, "bolt");
|
||||
|
||||
function bive_cache_control()
|
||||
{
|
||||
global $b;
|
||||
$b->template_load("bive-cache-control/template/panel.php");
|
||||
}
|
||||
|
||||
$b->event_add("bive_clear_cache", "bive_clear_cache");
|
||||
|
||||
function bive_clear_cache($args)
|
||||
{
|
||||
global $b;
|
||||
$b->template_cache_remove();
|
||||
$b->alerts_add("Кеш успешно очищен!", "notice", "b_cache");
|
||||
$b->router_refresh();
|
||||
exit();
|
||||
}
|
||||
Reference in New Issue
Block a user