mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 05:43:55 -07:00
Tracker announce & scrape improvements 🥳 (#901)
* Tracker announce & scrape improvements
* Fixed null variables
Co-Authored-By: Constantine Kovalensky <45331093+kovalensky@users.noreply.github.com>
* Hybrid topics handling in announcer
* Updated
* Use correct data types
* Revert "Use correct data types"
This reverts commit bc9f0e4d6f
.
* Update announce.php
* Showing downloaded times in stats
* Updated
* Updated
* Debugging variables
* Update scrape.php
* Updated
* Update announce.php
* Update announce.php
* Code re-formatting
* Code re-formatting
* Updated
* Update config.php
* Update tr_make_snapshot.php
* Update tr_complete_count.php
* Stopped event should be handled before cache check
* Include torrent download name in magnet link
* Magnet name re-formatting
* Smart cache management
---------
Co-authored-by: Constantine Kovalensky <45331093+kovalensky@users.noreply.github.com>
This commit is contained in:
parent
cc07ecb56c
commit
c654a9ae36
13 changed files with 125 additions and 86 deletions
|
@ -346,9 +346,11 @@ if (!defined('IN_TRACKER')) {
|
|||
|
||||
define('PEER_HASH_EXPIRE', round($bb_cfg['announce_interval'] * (0.85 * $bb_cfg['tracker']['expire_factor'])));
|
||||
define('PEERS_LIST_EXPIRE', round($bb_cfg['announce_interval'] * 0.7));
|
||||
define('SCRAPE_LIST_EXPIRE', round($bb_cfg['scrape_interval'] * 0.7));
|
||||
|
||||
define('PEER_HASH_PREFIX', 'peer_');
|
||||
define('PEERS_LIST_PREFIX', 'peers_list_');
|
||||
define('SCRAPE_LIST_PREFIX', 'scrape_list_');
|
||||
|
||||
header('Content-Type: text/plain');
|
||||
header('Pragma: no-cache');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue