mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-01 15:32:48 +08:00
完成内置的数据库日志驱动;内置数据库日志的定时清除;更新新的数据库sql;
This commit is contained in:
@@ -11,6 +11,9 @@ class TimerController extends ToolsController
|
||||
|
||||
public function initialize()
|
||||
{
|
||||
|
||||
parent::initialize();
|
||||
|
||||
if (is_integer($this->frequency)) {
|
||||
$this->protectVisit($this->frequency);
|
||||
}
|
||||
@@ -21,7 +24,7 @@ class TimerController extends ToolsController
|
||||
|
||||
$cache_tag = 'timer_protect';
|
||||
|
||||
$cache_key = 'timer_protect_' . $this->request->url();
|
||||
$cache_key = 'timer_protect_' . md5($this->request->url());
|
||||
|
||||
$last_exec_time = Cache::get($cache_key, 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user