include previous misses in cache-asset-manifests
Originally, this was sorta a cache warmup script: we wanted to fill in manifests that we hadn't checked for yet. But now, I want to _also_ check previous cache misses, that we stored in the db as an empty string. Maybe it's been converted now!
This commit is contained in:
parent
fd864ab8ec
commit
6168f98b8e
1 changed files with 3 additions and 4 deletions
|
@ -16,10 +16,9 @@ const connectToDb = require("../src/server/db");
|
||||||
const neopetsAssets = require("../src/server/neopets-assets");
|
const neopetsAssets = require("../src/server/neopets-assets");
|
||||||
|
|
||||||
async function cacheAssetManifests(db) {
|
async function cacheAssetManifests(db) {
|
||||||
const [
|
const [rows] = await db.execute(
|
||||||
rows,
|
`SELECT id, url FROM swf_assets ` +
|
||||||
] = await db.execute(
|
`WHERE manifest IS NULL OR manifest = "" AND id >= ? ` +
|
||||||
`SELECT id, url FROM swf_assets WHERE manifest IS NULL AND id >= ? ` +
|
|
||||||
`ORDER BY id`,
|
`ORDER BY id`,
|
||||||
[argv.start || 0]
|
[argv.start || 0]
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue