mirror of
https://github.com/friendica/friendica
synced 2025-04-26 15:10:11 +00:00
The config class now makes less database reads.
This commit is contained in:
parent
045e94ccf3
commit
0548099f6c
29 changed files with 153 additions and 107 deletions
|
@ -1,7 +1,8 @@
|
|||
<?php
|
||||
|
||||
require_once("boot.php");
|
||||
use \Friendica\Core\Config;
|
||||
|
||||
require_once("boot.php");
|
||||
|
||||
function cronhooks_run(&$argv, &$argc){
|
||||
global $a, $db;
|
||||
|
@ -20,8 +21,7 @@ function cronhooks_run(&$argv, &$argc){
|
|||
require_once('include/session.php');
|
||||
require_once('include/datetime.php');
|
||||
|
||||
load_config('config');
|
||||
load_config('system');
|
||||
Config::load();
|
||||
|
||||
// Don't check this stuff if the function is called by the poller
|
||||
if (App::callstack() != "poller_run") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue