0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00

Added url cache persistance on instance shutdown

refs https://github.com/TryGhost/Toolbox/issues/125

- The in-memory url objects would be persisted in the contents folder allowing to take advantage of the cache during the next instance start
This commit is contained in:
Naz 2021-11-12 14:50:17 +04:00 committed by naz
parent 04c6716171
commit cb652aed3f

View file

@ -105,6 +105,9 @@ async function initCore({ghostServer, config}) {
ghostServer.registerCleanupTask(async () => {
await jobService.shutdown();
});
ghostServer.registerCleanupTask(async () => {
await urlService.persistUrls();
});
debug('End: Job Service');
debug('End: initCore');