Backporting a bunch of optimizations from db-only branch
This commit is contained in:
@@ -18,7 +18,9 @@ export async function pageComplete(completeEvent: CompleteEvent) {
|
||||
completeEvent.linePrefix,
|
||||
);
|
||||
const tagToQuery = isInTemplateContext ? "template" : "page";
|
||||
let allPages: PageMeta[] = await queryObjects<PageMeta>(tagToQuery, {});
|
||||
let allPages: PageMeta[] = await queryObjects<PageMeta>(tagToQuery, {
|
||||
cacheSecs: 5,
|
||||
});
|
||||
const prefix = match[1];
|
||||
if (prefix.startsWith("!")) {
|
||||
// Federation prefix, let's first see if we're matching anything from federation that is locally synced
|
||||
|
||||
Reference in New Issue
Block a user