feat: tag all PocketBase fetches for ISR cache invalidation
Each getCollection/getFirstRecord call now passes the collection name as a cache tag so revalidateTag can target individual collections.
This commit is contained in:
1 parent
42ca683c65
commit
cb3bdce24a
7 files changed
+8
-2
No files matched your search
@@ -8,7 +8,7 @@ import { RichText } from '$shared/ui';
|
||||
* Displays personal biography content from PocketBase.
|
||||
*/
|
||||
export default async function BioSection() {
|
||||
const data = await getFirstRecord<PageContentRecord>('bio');
|
||||
const data = await getFirstRecord<PageContentRecord>('bio', { tags: ['bio'] });
|
||||
|
||||
if (!data) {
|
||||
notFound();
|
||||
|
||||
Reference in new issue
Block a user