--- import BasePage from "../layouts/BasePage.astro"; import {frontmatter, Content } from '../content/now.md'; import cache from '../backends/cache'; const cacheKey = 'finger-content'; let fingerContent = await cache.get(cacheKey); if(!fingerContent){ const res = await fetch('https://plan.cat/~travisshears'); fingerContent = await res.text(); await cache.set(cacheKey, fingerContent); await cache.expire(cacheKey, 60 * 60); // 1 hour } ---
{fingerContent}