0
Fork 0
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:
Daniel Lockyer 2024-10-14 14:05:37 +02:00 committed by Daniel Lockyer
parent 96f6adecac
commit f1638b869c

View file

@ -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'