Pre-cache all pages of site or a set of pages?

Is there a way to run the creation of the page cache for a set of pages ? or a list of absolute urls ?

Something like :
$page->render(); but $page->renderCached();

Maybe should I run a CURL request on each of these to force the creation of them ?

Thanks !

Yes, that would be an option.

@bnomei answered to my question on slack also, I’ll put these here if it can help someone :

calling render() should do fine. it either gets the cache or renders it. https://github.com/getkirby/kirby/blob/a7f2f9695509ad6f7e407c5214b0a7aff0b99039/src/Cms/Page.php#L1126

but make sure you know when pages (based on it url request) will be cached. https://github.com/getkirby/kirby/blob/a7f2f9695509ad6f7e407c5214b0a7aff0b99039/src/Cms/Page.php#L581

like NOT when url has any params etc