mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
Fixed UrlService initialization
refs https://github.com/TryGhost/Toolbox/issues/135 - When there's no instance of cache available the code to retreive it should not execut. Duh!
This commit is contained in:
parent
9057ca0ee2
commit
ae397eecdf
1 changed files with 1 additions and 1 deletions
|
@ -326,7 +326,7 @@ class UrlService {
|
||||||
let persistedUrls;
|
let persistedUrls;
|
||||||
let persistedResources;
|
let persistedResources;
|
||||||
|
|
||||||
if (labs.isSet('urlCache') || urlCache) {
|
if (this.cache && (labs.isSet('urlCache') || urlCache)) {
|
||||||
persistedUrls = await this.cache.read('urls');
|
persistedUrls = await this.cache.read('urls');
|
||||||
persistedResources = await this.cache.read('resources');
|
persistedResources = await this.cache.read('resources');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue