Ghost/ghost/admin/app/serializers
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 [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
api-key.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
application.js Fixed Ember Data deprecation warnings for queryRecord response returning array 2022-02-10 14:50:58 +00:00
custom-theme-setting-list.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
email.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
integration.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
invite.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
label.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
member.js Fixed odd behavior with saving complimentary members 2022-08-17 20:53:34 +05:30
newsletter.js Added sender email verification flow for newsletters 2022-04-13 19:34:58 +01:00
notification.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
page.js Finalized migration of serializers to native class syntax 2022-02-02 18:35:18 +00:00
post-revision.js Wired up feature image alt and caption to DB and Admin 2023-04-21 15:26:43 +01:00
post.js Fixed Admin sending all post revisions along with each post save request (#18582) 2023-10-11 17:37:50 +00:00
role.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
setting.js Updated AdminX to sync data changes to Ember (#18327) 2023-09-25 17:29:09 +01:00
snippet.js 🐛 Fixed existing snippets not being available in beta editor 2023-06-06 12:56:33 +01:00
tag.js Reduced Admin search re-indexes (#20154) 2024-05-07 15:24:20 +01:00
theme.js Fixed Theme.errors clash with Ember Data Model's errors property (#16106) 2023-02-28 13:28:32 +00:00
tier.js Updated usage of the Tiers API (#2388) 2022-05-16 19:51:49 +01:00
user.js Reduced Admin search re-indexes (#20154) 2024-05-07 15:24:20 +01:00
webhook.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00