From db5a93226a64076630b06ff47c95d1dfeba6b175 Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Wed, 15 Mar 2023 04:52:47 -0700 Subject: [PATCH] cache adjust --- src/_data/nowplaying.js | 4 ++-- src/_data/status.js | 2 +- src/_data/webmentions.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/_data/nowplaying.js b/src/_data/nowplaying.js index dffe4ac8..b2ff8b9f 100644 --- a/src/_data/nowplaying.js +++ b/src/_data/nowplaying.js @@ -1,9 +1,9 @@ const EleventyFetch = require('@11ty/eleventy-fetch') module.exports = async function () { - const url = 'https://utils.coryd.dev/api/music?limit=1&period=7day' + const url = 'https://utils.coryd.dev/api/music?limit=1' const res = EleventyFetch(url, { - duration: '0s', + duration: '3m', type: 'json', }) const music = await res diff --git a/src/_data/status.js b/src/_data/status.js index 5a520b78..8bb6d868 100644 --- a/src/_data/status.js +++ b/src/_data/status.js @@ -3,7 +3,7 @@ const EleventyFetch = require('@11ty/eleventy-fetch') module.exports = async function () { const url = 'https://api.omg.lol/address/cory/statuses/' const res = EleventyFetch(url, { - duration: '1d', + duration: '1h', type: 'json', }) const status = await res diff --git a/src/_data/webmentions.js b/src/_data/webmentions.js index a5d459d6..fc4e0a8b 100644 --- a/src/_data/webmentions.js +++ b/src/_data/webmentions.js @@ -3,7 +3,7 @@ const EleventyFetch = require('@11ty/eleventy-fetch') module.exports = async function () { const url = 'https://utils.coryd.dev/api/webmentions' const res = EleventyFetch(url, { - duration: '1d', + duration: '1h', type: 'json', }) const webmentions = await res