mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
update history settings folding
This commit is contained in:
parent
7451d6d78f
commit
335424a8c3
2 changed files with 8 additions and 11 deletions
11
config.json
11
config.json
|
|
@ -78,16 +78,13 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"memory":
|
||||
"history":
|
||||
{
|
||||
"history":
|
||||
"memory":
|
||||
{
|
||||
"enabled":true
|
||||
}
|
||||
},
|
||||
"database":
|
||||
{
|
||||
"history":
|
||||
},
|
||||
"database":
|
||||
{
|
||||
"enabled":true,
|
||||
"timeout":null
|
||||
|
|
|
|||
|
|
@ -46,10 +46,10 @@ class Page
|
|||
$this->history = new \Yggverse\Yoda\Model\History;
|
||||
|
||||
// Run database cleaner
|
||||
if ($this->config->database->history->timeout)
|
||||
if ($this->config->history->database->timeout)
|
||||
{
|
||||
$this->app->database->cleanHistory(
|
||||
$this->config->database->history->timeout
|
||||
$this->config->history->database->timeout
|
||||
);
|
||||
}
|
||||
|
||||
|
|
@ -372,7 +372,7 @@ class Page
|
|||
);
|
||||
|
||||
// Update history in memory pool
|
||||
if ($history && $this->config->memory->history->enabled && $url != $this->history->getCurrent())
|
||||
if ($history && $this->config->history->memory->enabled && $url != $this->history->getCurrent())
|
||||
{
|
||||
$this->history->add(
|
||||
$url
|
||||
|
|
@ -603,7 +603,7 @@ class Page
|
|||
);
|
||||
|
||||
// Update history database
|
||||
if ($history && $this->config->database->history->enabled)
|
||||
if ($history && $this->config->history->database->enabled)
|
||||
{
|
||||
// Ignore history record on same URL stored
|
||||
if ($result = $this->app->database->getHistory('', 0, 1))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue