number format dashboard + improve scrape cache

This commit is contained in:
xiaomlove
2023-03-05 18:15:31 +08:00
parent 0107d51a7d
commit e59cb7911c
5 changed files with 31 additions and 30 deletions

View File

@@ -1,6 +1,6 @@
<?php
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.8.0');
defined('RELEASE_DATE') || define('RELEASE_DATE', '2023-03-04');
defined('RELEASE_DATE') || define('RELEASE_DATE', '2023-03-05');
defined('IN_TRACKER') || define('IN_TRACKER', false);
defined('PROJECTNAME') || define("PROJECTNAME","NexusPHP");
defined('NEXUSPHPURL') || define("NEXUSPHPURL","https://nexusphp.org");

View File

@@ -45,10 +45,10 @@ function block_browser()
function benc_resp($d)
{
do_log(nexus_json_encode($d));
benc_resp_raw(\Rhilip\Bencode\Bencode::encode($d));
}
function benc_resp_raw($x) {
do_log($x);
header("Content-Type: text/plain; charset=utf-8");
header("Pragma: no-cache");