X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=index.php;h=08f24af60f49238d43a7d30832767dd939feea2b;hb=125d2f24dd8a9946a4b57bbda000bf15f6b0a60c;hp=6ce348eac5d57692881c47e11f1d913df9567b40;hpb=2a088d27d03b92369cbd53dad502a8f706bab549;p=friendica.git diff --git a/index.php b/index.php index 6ce348eac5..08f24af60f 100644 --- a/index.php +++ b/index.php @@ -99,6 +99,10 @@ if (!$a->is_backend()) { $stamp1 = microtime(true); session_start(); $a->save_timestamp($stamp1, "parser"); +} else { + require_once "include/poller.php"; + + call_worker_if_idle(); } /** @@ -489,7 +493,8 @@ if (isset($_GET["mode"]) AND ($_GET["mode"] == "raw")) { echo substr($target->saveHTML(), 6, -8); - session_write_close(); + if (!$a->is_backend()) + session_write_close(); exit; } @@ -514,5 +519,6 @@ if(!$template) { require_once($template); -session_write_close(); +if (!$a->is_backend()) + session_write_close(); exit;