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:
parent
04c6716171
commit
cb652aed3f
1 changed files with 3 additions and 0 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Reference in a new issue