Ghost/ghost
Daniel Lockyer 4d029c4812 Fixed generating fallback context unnecessarily
fixes https://github.com/TryGhost/Product/issues/4216

When generating page/post metadata, we generate a "context object" from
several meta helpers. In the event there is no context from the resource
type, we generate a fallback object.

However... we generate this fallback object no matter what.

Now, the fallback object is just 3x settingsCache.get, which should be
fast, but it's not. I've opened a separate issue for that: https://github.com/TryGhost/Product/issues/4217

In the mean time, we can switch this logic around to only do these calls
when we have no other context.

From testing, this allows for 10% more throughput on a post 🤯
2023-11-30 10:39:35 +01:00
..
adapter-cache-memory-ttl Configured all unit tests to use dot reporter 2023-10-05 12:24:24 +02:00
adapter-cache-redis Added retryStrategy to redis cache adapter with configurable retry delay 2023-11-29 16:06:05 +00:00
adapter-manager Aligned dependencies with resolution values 2023-10-13 08:37:36 +02:00
admin Update dependency ember-auto-import to v2.7.0 2023-11-30 07:52:25 +01:00
announcement-bar-settings Configured all unit tests to use dot reporter 2023-10-05 12:24:24 +02:00
api-framework Update TryGhost packages 2023-10-31 20:54:17 +01:00
api-version-compatibility-service Configured all unit tests to use dot reporter 2023-10-05 12:24:24 +02:00
audience-feedback Update TryGhost packages 2023-10-31 20:54:17 +01:00
bookshelf-repository Added tests to AdminX framework package (#19022) 2023-11-20 11:00:51 +00:00
bootstrap-socket Aligned dependencies with resolution values 2023-10-13 08:37:36 +02:00
collections Removed usage of unquoted ids in filter strings (#19070) 2023-11-21 09:45:36 +01:00
constants Configured all unit tests to use dot reporter 2023-10-05 12:24:24 +02:00
core Fixed generating fallback context unnecessarily 2023-11-30 10:39:35 +01:00
custom-theme-settings-service 🐛 Fixed contain/starts/endsWith filters with /, _ or % in them (#19015) 2023-11-16 09:35:20 +00:00
data-generator 🔒 Added support for logging out members on all devices (#18935) 2023-11-15 17:10:28 +01:00
domain-events Aligned dependencies with resolution values 2023-10-13 08:37:36 +02:00
donations Update dependency typescript to v5.3.2 2023-11-20 20:11:26 +01:00
dynamic-routing-events Configured all unit tests to use dot reporter 2023-10-05 12:24:24 +02:00
email-addresses Updated support email address verification for DMARC changes (#19147) 2023-11-28 15:06:58 +01:00
email-analytics-provider-mailgun Configured all unit tests to use dot reporter 2023-10-05 12:24:24 +02:00
email-analytics-service Update TryGhost packages 2023-10-31 20:54:17 +01:00
email-content-generator Update dependency fs-extra to v11.2.0 2023-11-28 11:54:44 +01:00
email-events Configured all unit tests to use dot reporter 2023-10-05 12:24:24 +02:00
email-service Update dependency html-validate to v8.7.3 2023-11-30 10:38:44 +01:00
email-suppression-list Configured all unit tests to use dot reporter 2023-10-05 12:24:24 +02:00
event-aware-cache-wrapper Configured all unit tests to use dot reporter 2023-10-05 12:24:24 +02:00
express-dynamic-redirects Configured all unit tests to use dot reporter 2023-10-05 12:24:24 +02:00
external-media-inliner Add Lexical support to the external-media-inliner (#19149) 2023-11-29 17:56:03 +00:00
extract-api-key Configured all unit tests to use dot reporter 2023-10-05 12:24:24 +02:00
html-to-plaintext Configured all unit tests to use dot reporter 2023-10-05 12:24:24 +02:00
i18n Update dependency i18next to v23.7.7 2023-11-28 14:42:59 +00:00
importer-handler-content-files Configured all unit tests to use dot reporter 2023-10-05 12:24:24 +02:00
importer-revue Enabled emoji picker in feature image caption (#18824) 2023-11-01 21:22:56 +00:00
in-memory-repository Added tests to AdminX framework package (#19022) 2023-11-20 11:00:51 +00:00
job-manager Update dependency @breejs/later to v4.2.0 2023-11-29 00:05:22 +00:00
link-redirects Update Types packages 2023-11-08 12:13:12 +01:00
link-replacer Configured all unit tests to use dot reporter 2023-10-05 12:24:24 +02:00
link-tracking 🐛 Fixed contain/starts/endsWith filters with /, _ or % in them (#19015) 2023-11-16 09:35:20 +00:00
magic-link Update Types packages 2023-11-08 12:29:48 +01:00
mail-events Added tests to AdminX framework package (#19022) 2023-11-20 11:00:51 +00:00
mailgun-client Fixed mailto unsubscribe header to only unsubscribe current tags (#18995) 2023-11-15 12:57:24 +00:00
member-attribution Update TryGhost packages 2023-10-31 20:54:17 +01:00
member-events Configured all unit tests to use dot reporter 2023-10-05 12:24:24 +02:00
members-api 🐛 Fixed contain/starts/endsWith filters with /, _ or % in them (#19015) 2023-11-16 09:35:20 +00:00
members-csv Update dependency fs-extra to v11.2.0 2023-11-28 11:54:44 +01:00
members-events-service Aligned dependencies with resolution values 2023-10-13 08:37:36 +02:00
members-importer Update dependency fs-extra to v11.2.0 2023-11-28 11:54:44 +01:00
members-ssr Fixed deleting session when requesting identity for invalid session (#19017) 2023-11-16 11:01:50 +00:00
mentions-email-report Configured all unit tests to use dot reporter 2023-10-05 12:24:24 +02:00
milestones Aligned dependencies with resolution values 2023-10-13 08:37:36 +02:00
minifier Update TryGhost packages 2023-10-31 20:54:17 +01:00
model-to-domain-event-interceptor Configured all unit tests to use dot reporter 2023-10-05 12:24:24 +02:00
mw-api-version-mismatch Aligned dependencies with resolution values 2023-10-13 08:37:36 +02:00
mw-cache-control Configured all unit tests to use dot reporter 2023-10-05 12:24:24 +02:00
mw-error-handler Improved error handling for SQL errors (#18797) 2023-11-01 13:47:41 -07:00
mw-session-from-token Configured all unit tests to use dot reporter 2023-10-05 12:24:24 +02:00
mw-update-user-last-seen Configured all unit tests to use dot reporter 2023-10-05 12:24:24 +02:00
mw-version-match Update TryGhost packages 2023-10-31 20:54:17 +01:00
mw-vhost Configured all unit tests to use dot reporter 2023-10-05 12:24:24 +02:00
nql-filter-expansions Configured all unit tests to use dot reporter 2023-10-05 12:24:24 +02:00
oembed-service Update metascraper to v5.39.0 2023-11-29 19:26:18 +00:00
offers Fixed create offer API not returning created_at (#19143) 2023-11-28 15:11:35 +00:00
package-json Update dependency fs-extra to v11.2.0 2023-11-28 11:54:44 +01:00
payments Aligned dependencies with resolution values 2023-10-13 08:37:36 +02:00
post-events Configured all unit tests to use dot reporter 2023-10-05 12:24:24 +02:00
post-revisions Added tests to AdminX framework package (#19022) 2023-11-20 11:00:51 +00:00
posts-service 🐛 Fixed contain/starts/endsWith filters with /, _ or % in them (#19015) 2023-11-16 09:35:20 +00:00
recommendations Update dependency typescript to v5.3.2 2023-11-20 20:11:26 +01:00
referrers Configured all unit tests to use dot reporter 2023-10-05 12:24:24 +02:00
security Update TryGhost packages 2023-10-31 20:54:17 +01:00
session-service Aligned dependencies with resolution values 2023-10-13 08:37:36 +02:00
settings-path-manager Update TryGhost packages 2023-10-31 20:54:17 +01:00
slack-notifications Update TryGhost packages 2023-10-31 20:54:17 +01:00
staff-service Added email address alignment protections (#19094) 2023-11-23 10:25:30 +01:00
stats-service Update Types packages 2023-11-21 15:06:56 +01:00
stripe Update TryGhost packages 2023-10-31 20:54:17 +01:00
tiers Update TryGhost packages 2023-10-31 20:54:17 +01:00
update-check-service Update TryGhost packages 2023-10-31 20:54:17 +01:00
verification-trigger Aligned dependencies with resolution values 2023-10-13 08:37:36 +02:00
version-notifications-data-service Configured all unit tests to use dot reporter 2023-10-05 12:24:24 +02:00
webmentions Removed usage of unquoted ids in filter strings (#19070) 2023-11-21 09:45:36 +01:00
tsconfig.json Disabled TypeScript incremental building 2023-08-09 18:27:56 +02:00