That's why it was removed in v2.
replace backend/cache.php with [url="
http://torrenttrader.svn.sourceforge.net/svnroot/torrenttrader/v2/trunk/upload/backend/cache.php"]this[/url] one.
announce.php, find:
require_once("backend/config.php");
add after:
require_once("backend/cache.php");
find:
$res1_s = mysql_query("SELECT torrentid, userid FROM snatched WHERE torrentid = $torrentid AND userid = $userid") or err('Tracker error (120)');
$row1_s = mysql_fetch_assoc($res1_s);
replace with:
$row1_s = mysql_query_cached("SELECT id FROM snatched WHERE torrentid = $torrentid AND userid = $userid", 7200, 0);
run these queries:
ALTER TABLE `snatched` ADD INDEX `torrentid_userid` (`torrentid`, `userid`);
ALTER TABLE `snatched` ENGINE=InnoDB;
Doesn't matter if either fails.
I can see a few issues with the code that's posted. When i have time, i will post a new topic using the code i've got on my site (which is much more stable).