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) {
const res = await p.sync.page.cache(
p.site.id,
load_urls,
Object.keys(p.preview.page_cache)
);
const res = await p.sync.page.cache(p.site.id, load_urls, [
...Object.keys(p.preview.page_cache),
p.page.cur.id,
]);
if (res) {
const pages = JSON.parse(