Ghost/ghost/core/test/unit
Fabien 'egg' O'Carroll 6a35f6e4cc
Fixed get helper cache optimizations (#19865)
ref [ENG-747](https://linear.app/tryghost/issue/ENG-747/)
ref https://linear.app/tryghost/issue/ENG-747

H'okay - so what we're trying to do here is make get helper queries more
cacheable. The way we're doing that is by modifying the filter used when
we're trying to remove a single post from the query.

The idea is that we can remove that restriction on the filter, increase
the number of posts fetched by 1 and then filter the fetched posts back
down, this means that the same query, but filtering different posts,
will be updated to make _exactly_ the same query, and so share a cache!

We've been purposefully restrictive in the types of filters we
manipulate, so that we only deal with the simplest cases and the code is
easier to understand.
2024-03-15 00:18:15 +07:00
..
api Fixed clearing invalid sender_email when changing newsletter sender_reply_to (#19555) 2024-01-23 16:10:11 +01:00
frontend Fixed get helper cache optimizations (#19865) 2024-03-15 00:18:15 +07:00
server Added ability to pass minThreshold for Milestone Slack notifications 2024-03-14 12:06:43 -04:00
shared Added Sentry instrumentation for get helpers (#19576) 2024-01-24 18:50:48 -08:00