Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed get helper cache optimizations #19865

Merged
merged 1 commit into from Mar 14, 2024

Commits on Mar 14, 2024

  1. Optimised queries made by get helper for posts

    ref 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.
    allouis committed Mar 14, 2024
    Copy the full SHA
    df683ea View commit details
    Browse the repository at this point in the history