blob: b2545afbfeff209b5e21924edc7d852113635e84 (
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",
"/cloudburst/-/history",
"/raindrops/-/history",
"/" . $app["other"]["slug"] . "/-/history"
];
foreach ($urls as $url) {
echo(" " . $url . "\n");
exec("nice 19 curl -k -H 'Host: ponies.equestria.horse' https://localhost" . $url);
}
echo("Refreshed cache\n");
|