aboutsummaryrefslogtreecommitdiff
path: root/api/make_cache.sh
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2023-04-03 05:18:04 +0300
committerkaotisk <kaotisk@arching-kaos.org>2023-04-03 05:18:04 +0300
commit21f76a6dbf6fab5311ab7f4b7b2fb5d0991ea3b2 (patch)
treed60e7a17a2d946f1f28eb0dc7d1cddb6d0820a11 /api/make_cache.sh
parentfc91066907e4d16a951c8d72d23aa610945f5407 (diff)
downloadarching-kaos-tools-21f76a6dbf6fab5311ab7f4b7b2fb5d0991ea3b2.tar.gz
arching-kaos-tools-21f76a6dbf6fab5311ab7f4b7b2fb5d0991ea3b2.tar.bz2
arching-kaos-tools-21f76a6dbf6fab5311ab7f4b7b2fb5d0991ea3b2.zip
Attempt to create cache places for the API to hit instead of running things
Diffstat (limited to 'api/make_cache.sh')
-rw-r--r--api/make_cache.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/api/make_cache.sh b/api/make_cache.sh
new file mode 100644
index 0000000..b9e7cb9
--- /dev/null
+++ b/api/make_cache.sh
@@ -0,0 +1,6 @@
+AK_CACHE="$AK_WORKDIR/cache"
+
+ak-find-latest-mined-sblock > $AK_CACHE/ak-find-latest-mined-sblock.json
+ak-get-chain-minified > $AK_CACHE/ak-get-chain-minified.json
+ak-get-latest > $AK_CACHE/ak-get-latest.json
+