krisl on Nostr: There should be some caching, maybe a cron job that runs every 5minutes and refreshes ...
There should be some caching, maybe a cron job that runs every 5minutes and refreshes the cache, so the site loads instantly, but has 5minute old data max. You could reduce the cron job to even less...
Published at
2025-04-02 16:06:27Event JSON
{
"id": "1331f1c4d6d6aebbff48128468c6649ea4499e661f1b0b19d4848c1648350123",
"pubkey": "546b924fb57b1b3b243092465a74333f536e18bf46ec63fdbc732d6b5719729d",
"created_at": 1743609987,
"kind": 1,
"tags": [
[
"e",
"53c5a38a5760b62c2290fb6dfd2933f6dbd809f9d0be07e5706cb49eda344810",
"",
"root"
],
[
"e",
"86f9f2a4bbc5f62452d8355265cc9d3c51fbca18f6375ac9eedb19e428c71e39"
],
[
"e",
"39c1ffb86edfdad21597f8117ecad958d8a38efa02cc0a9837153aaaeeeeadbc",
"",
"reply"
],
[
"p",
"7bdef7be22dd8e59f4600e044aa53a1cf975a9dc7d27df5833bc77db784a5805"
],
[
"p",
"3356de61b39647931ce8b2140b2bab837e0810c0ef515bbe92de0248040b8bdd"
],
[
"p",
"5af0794606a15b5641e25aa23d04af4cb0d7d5e68b11cacb47e56a4698fca8c4"
],
[
"p",
"546b924fb57b1b3b243092465a74333f536e18bf46ec63fdbc732d6b5719729d"
]
],
"content": "There should be some caching, maybe a cron job that runs every 5minutes and refreshes the cache, so the site loads instantly, but has 5minute old data max. You could reduce the cron job to even less...",
"sig": "a6885d4ca013c0419e872a20f5a55c5bf8e3537bfc9f0ace176950f39a4a4823add340cbccca3f09918625d2fa5a6ec4274fd2fe562ceb9d63f69717f7b3f35a"
}