Skip to content

TypeScript API / @laikacms/astro/live / LiveCacheOptions

Interface: LiveCacheOptions ​

Properties ​

lastModified? ​

ts
optional lastModified?: boolean;

Send updatedAt as the cache hint's lastModified. Defaults to true.


tags? ​

ts
optional tags?: (context) => string[];

Cache tags for an entry. Defaults to ['laika', 'laika:<collection>', 'laika:<key>'].

Parameters ​

ParameterType
context{ collection: string; key: string; }
context.collectionstring
context.keystring

Returns ​

string[]

Released under the MIT License.