remove info_hash not exsts cache when upload

This commit is contained in:
xiaomlove
2023-08-18 02:39:07 +08:00
parent 8dc9cb8f02
commit 21c4ca0bef
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
<?php <?php
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.8.6'); defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.8.6');
defined('RELEASE_DATE') || define('RELEASE_DATE', '2023-08-15'); defined('RELEASE_DATE') || define('RELEASE_DATE', '2023-08-18');
defined('IN_TRACKER') || define('IN_TRACKER', false); defined('IN_TRACKER') || define('IN_TRACKER', false);
defined('PROJECTNAME') || define("PROJECTNAME","NexusPHP"); defined('PROJECTNAME') || define("PROJECTNAME","NexusPHP");
defined('NEXUSPHPURL') || define("NEXUSPHPURL","https://nexusphp.org"); defined('NEXUSPHPURL') || define("NEXUSPHPURL","https://nexusphp.org");
+3
View File
@@ -403,6 +403,9 @@ if ($saveResult === false) {
sql_query("delete from torrents where id = $id limit 1"); sql_query("delete from torrents where id = $id limit 1");
bark("save torrent to $torrentFilePath fail."); bark("save torrent to $torrentFilePath fail.");
} }
//remove announce info_hash not exists cache
//@see announce.php
\Nexus\Database\NexusDB::cache_del("torrent_not_exists:$infohash");
/** /**
* add custom fields * add custom fields