Skip to content
Discussion options

You must be logged in to vote

The reason module-level variables are reinitialized on every request is due to <LiveReload/>

In development you should store your cache on the global object to survive the purge.

See the Jokes tutorial where it discusses how to maintain the database connection.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jaidetree
Comment options

Answer selected by jaidetree
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants