This commit is contained in:
Rizky 2024-01-27 14:42:56 +07:00
parent 4cea063783
commit 7fd936c051
1 changed files with 4 additions and 5 deletions

View File

@ -122,11 +122,10 @@ export const ViPreview = (arg: { pathname: string }) => {
} }
if (load_urls.length > 0) { if (load_urls.length > 0) {
const res = await p.sync.page.cache( const res = await p.sync.page.cache(p.site.id, load_urls, [
p.site.id, ...Object.keys(p.preview.page_cache),
load_urls, p.page.cur.id,
Object.keys(p.preview.page_cache) ]);
);
if (res) { if (res) {
const pages = JSON.parse( const pages = JSON.parse(