Ghost/ghost/api-framework/lib
Fabien 'egg' O'Carroll aaaa3ba797
Added support for "Refresh Ahead" caching strategy (#19499)
The main changes are:
- Updating the pipeline to allow for doing a background refresh of the
cache
- Remove the use of the EventAwareCacheWrapper for the posts public
cache

### Background refresh

This is just an initial implementation, and tbh it doesn't sit right
with me that the logic for this is in the pipeline - I think this should
sit in the cache implementation itself, and then we call out to it with
something like: `cache.get(key, fetchData)` and then the updates can
happen internally.

The `cache-manager` project actually has a method like this called
`wrap` - but every time I've used it it hangs, and debugging was a pain,
so I don't really trust it.

### EventAwareCacheWrapper

This is such a small amount of logic, I don't think it's worth creating
an entire wrapper for it, at least not a class based one. I would be
happy to refactor this to use a `Proxy` too, so that we don't have to
add methods to it each time we wanna change the underlying cache
implementation.
2024-01-17 14:00:24 +01:00
..
serializers Removed bluebird from api-framework module (#15685) 2022-10-31 19:30:18 +00:00
utils Extracted shared API framework to separate package 2022-08-11 17:44:59 +02:00
validators Removed bluebird from api-framework module (#15685) 2022-10-31 19:30:18 +00:00
api-framework.js Added eslint rule for file naming convention 2023-05-09 12:34:34 -04:00
Frame.js Added eslint rule for file naming convention 2023-05-09 12:34:34 -04:00
headers.js Implemented duplicate post functionality (#16767) 2023-05-15 09:30:32 +01:00
http.js Added function names to all Express middleware 2023-08-30 11:47:50 +02:00
pipeline.js Added support for "Refresh Ahead" caching strategy (#19499) 2024-01-17 14:00:24 +01:00