The LazyPagePlugin attempts to reduce the size of the Mosaic filesystem in memory by moving page metadata and content to disk.
It then adds a hook, so that when a page is requested the data is loaded from disk and combined with what is already in the Mosaic filesystem.
Warning
It must be the very last to run so that it can strip off metadata and content after other plugins have finished with them.
This plugin runs with a priority of -2. Needs to be the last to run for biggest impact.
| Property | Description |
|---|---|
| cacheDir | The directory to store the cache. Defaults to .mosaic-lazy-page-plugin-cache |
Add the following to the plugins collection:
Note
This plugin needs to be a runtimeOnly plugin because the goal is to reduce the in-memory
filesystem size.