Ghost/ghost/admin/app/models
Kevin Ansfield 40ee2043e0
Reduced Admin search re-indexes (#20154)
closes https://linear.app/tryghost/issue/MOM-97

The 30s search content expiry didn't really make sense and caused unnecessary delays and server load now that search will be more widely used within the editor.

- replaced concept of time-based expiry with explicit expiry
  - content still fetched on query if not already loaded or marked as stale
  - added `.expireContent()` method on search service to allow explicit expiry
- updated editor to pre-fetch search content when not already loaded or marked as stale
  - removes delay when first using internal linking search inside the editor
- updated post model to expire search content on save
  - expires on published post save or delete
  - expires on publish and unpublish
- updated tag model to expire content on create/save/delete
  - only expires when name or url is changed
- updated user model to expire on save/delete
  - only expires when name or url is changed
  - does not handle creation because that's done server-side via invites
2024-05-07 15:24:20 +01:00
..
action.js
api-key.js
base.js
collection.js
custom-theme-setting-list.js
custom-theme-setting.js
email.js
integration.js
invite.js
label.js
member-subscription.js
member-tier.js
member.js 🔒 Added support for logging out members on all devices (#18935) 2023-11-15 17:10:28 +01:00
mention.js
navigation-item.js
newsletter.js
notification.js
offer.js
page.js
post-revision.js
post.js Reduced Admin search re-indexes (#20154) 2024-05-07 15:24:20 +01:00
role.js
setting.js Fixed default sender address when email is managed (#19186) 2023-11-29 19:24:16 +00:00
snippet.js
tag.js Reduced Admin search re-indexes (#20154) 2024-05-07 15:24:20 +01:00
theme.js
tier-benefit-item.js
tier.js
user.js Reduced Admin search re-indexes (#20154) 2024-05-07 15:24:20 +01:00
webhook.js