mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Added more exclusion fields from URL service config
- we don't need any of these fields to do URL service calculations, so we can exclude them from being fetched, which improves performance of URL service init - ultimately, we should switch this to an include list to make this more explicit
This commit is contained in:
parent
96f6adecac
commit
f1638b869c
1 changed files with 9 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
|||
* They contain minimum filters for public accessibility of resources.
|
||||
*/
|
||||
|
||||
// TODO: switch exclude lists to include lists to make this more explicit
|
||||
module.exports = [
|
||||
{
|
||||
type: 'posts',
|
||||
|
@ -32,6 +33,10 @@ module.exports = [
|
|||
'twitter_description',
|
||||
'custom_template',
|
||||
'locale',
|
||||
'newsletter_id',
|
||||
'show_title_and_feature_image',
|
||||
'email_recipient_filter',
|
||||
'comment_id',
|
||||
'tiers'
|
||||
],
|
||||
withRelated: ['tags', 'authors'],
|
||||
|
@ -81,6 +86,10 @@ module.exports = [
|
|||
'authors',
|
||||
'primary_tag',
|
||||
'primary_author',
|
||||
'newsletter_id',
|
||||
'show_title_and_feature_image',
|
||||
'email_recipient_filter',
|
||||
'comment_id',
|
||||
'tiers'
|
||||
],
|
||||
filter: 'status:published+type:page'
|
||||
|
|
Loading…
Reference in a new issue