mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-30 09:48:55 +00:00
Add API testing scripts
This commit is contained in:
Executable
+13
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
// Test the cache server connection.
|
||||
require_once realpath(dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR . 'indexer.php');
|
||||
|
||||
use newznab\libraries\Cache;
|
||||
|
||||
try {
|
||||
$cache = new Cache();
|
||||
} catch (\Exception $error) {
|
||||
exit($error->getMessage() . PHP_EOL);
|
||||
}
|
||||
|
||||
print_r($cache->serverStatistics());
|
||||
Reference in New Issue
Block a user