blob: 5b4af13e6e4c39154a873aec84fd99624e4fb567 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
<?php
$options = json_decode($argv[1], true);
$_SERVER['DOCUMENT_ROOT'] = "../..";
$app = $GLOBALS["ColdHazeApp"] = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/app.json"), true);
echo("Refreshing cache...\n");
$urls = [
"/",
"/-/fronting",
"/-/rules",
"/-/stats",
"/-/splitting",
"/-/alphabet",
"/-/byspecies",
"/-/relations",
"/raindrops/-/history",
"/moonglow/-/history",
"/" . $app["other"]["slug"] . "/-/history"
];
foreach ($urls as $url) {
echo(" " . $url . "\n");
exec("nice -n 19 curl -k -H 'Host: ponycule.p.equestria.dev' https://localhost" . $url);
}
echo("Refreshed cache\n");
|