Skip to content

Conversation

@jpreynat
Copy link
Member

@jpreynat jpreynat commented Jun 24, 2024

This PR renames the existing getGlobalContext to getRequestContext, since the getOptionalRequestContext().cf object actually is in Cloudflare, and creates an actual getGlobalContext method, that returns getOptionalRequestContext().ctx and that can be used across all executions.

This PR then uses the new getGlobalContext method to create the local memory cache globally and use it across all requests and between the middleware and requests handlers.

@jpreynat jpreynat self-assigned this Jun 24, 2024
@github-actions github-actions bot temporarily deployed to gitbook-open (Preview) June 24, 2024 12:10 Inactive
@github-actions github-actions bot temporarily deployed to gitbook-open (Preview) June 24, 2024 12:10 Inactive
@argos-ci
Copy link

argos-ci bot commented Jun 24, 2024

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
default (Inspect) 👍 Changes approved 2 changed Jun 25, 2024, 12:24 PM
@github-actions github-actions bot temporarily deployed to gitbook-open (Preview) June 24, 2024 12:23 Inactive
@github-actions github-actions bot temporarily deployed to gitbook-open (Preview) June 24, 2024 13:26 Inactive
@github-actions github-actions bot temporarily deployed to gitbook-open (Preview) June 24, 2024 13:27 Inactive
@jpreynat jpreynat marked this pull request as ready for review June 24, 2024 13:42
@jpreynat jpreynat marked this pull request as draft June 25, 2024 07:21
@github-actions github-actions bot temporarily deployed to gitbook-open (Preview) June 25, 2024 07:23 Inactive
@github-actions github-actions bot temporarily deployed to gitbook-open (Preview) June 25, 2024 08:08 Inactive
@github-actions github-actions bot temporarily deployed to gitbook-open (Preview) June 25, 2024 08:22 Inactive
@github-actions github-actions bot temporarily deployed to gitbook-open (Preview) June 25, 2024 09:11 Inactive
@github-actions github-actions bot temporarily deployed to gitbook-open (Preview) June 25, 2024 09:37 Inactive
@github-actions github-actions bot temporarily deployed to gitbook-open (Preview) June 25, 2024 12:16 Inactive
@jpreynat jpreynat force-pushed the improve-memory-cache branch from bbe059e to 07db53a Compare June 25, 2024 12:18
@jpreynat jpreynat marked this pull request as ready for review June 25, 2024 12:19
@github-actions github-actions bot temporarily deployed to gitbook-open (Preview) June 25, 2024 12:20 Inactive
@jpreynat jpreynat merged commit db45c6d into main Jun 25, 2024
@jpreynat jpreynat deleted the improve-memory-cache branch June 25, 2024 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants