optimize cache
This commit is contained in:
rodič
0ec0931681
revize
47a480e54f
2
Makefile
2
Makefile
|
@ -35,7 +35,7 @@ inspect:
|
|||
deno run --inspect-brk --unstable --allow-read utils/test.js
|
||||
|
||||
fsync:
|
||||
rm -rf cache
|
||||
rm -rf cache/sync
|
||||
@make sync
|
||||
|
||||
twitter-stats:
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import cheerio from "https://esm.sh/cheerio@1.0.0-rc.12";
|
||||
import { ensureDir, exists } from "https://deno.land/std@0.173.0/fs/mod.ts";
|
||||
|
||||
const CACHE_DIR = "./cache";
|
||||
const CACHE_DIR = "./cache/sync";
|
||||
|
||||
export async function loadJSONUrl(url, options) {
|
||||
const resp = await fetch(url, options);
|
||||
|
|
|
@ -4,7 +4,7 @@ import { Table } from "https://deno.land/x/cliffy@v0.20.1/table/mod.ts";
|
|||
|
||||
import { ensureDir, exists } from "https://deno.land/std@0.173.0/fs/mod.ts";
|
||||
|
||||
const CACHE_DIR = "./cache";
|
||||
const CACHE_DIR = "./cache/twitter-stats";
|
||||
|
||||
import { DeConfEngine } from "./engine.js";
|
||||
|
||||
|
|
Načítá se…
Odkázat v novém úkolu