Commit Graph

228 Commits

Author SHA1 Message Date
kukulaka
8a21d6fd01 Making sure delete is present 2020-08-31 17:40:16 +01:00
kukulaka
9d6f80149c changes for caching
Most changes should be here, just making sure flush cache is in for each post / delete
2020-08-31 17:16:45 +01:00
Tanya Byrne
226280d6ba update caching 2020-08-25 13:49:08 +01:00
Tanya Byrne
efcb711d92 changing the cache again 2020-08-25 13:23:54 +01:00
Tanya Byrne
236d29d078 adding to all gets
when fetching add ?TTL=600&dTTL=600 for use the cache
2020-08-24 15:39:51 +01:00
Tanya Byrne
70051a3b72 remofe unneed notes 2020-08-24 14:04:50 +01:00
Tanya Byrne
fb10e32c9f Some examples of how to use 2020-08-24 14:04:09 +01:00
Tanya Byrne
c96d24eafe Convert those strings 2020-08-24 13:53:23 +01:00
Tanya Byrne
75f03a0361 updae cache notes 2020-08-24 13:49:59 +01:00
Tanya Byrne
f6912ee221 changed so can send TTL and death TTL in query parameters 2020-08-24 13:49:15 +01:00
Tanya Byrne
8e1f9c6565 missing bracket 2020-08-24 13:19:12 +01:00
Tanya Byrne
2f9099f08d change so can send cache live variables 2020-08-24 13:18:08 +01:00
Tanya Byrne
34c934cd5b update cache 2020-08-24 13:00:50 +01:00
Tanya Byrne
1f8e8ef4ee adding node part 2020-08-24 12:59:54 +01:00
Tanya Byrne
6a0f294f4d updating of redis cache 2020-08-24 12:44:59 +01:00
Tanya Byrne
cc6b272442 Basic format of cache middleware 2020-08-21 16:16:36 +01:00
Tanya Byrne
0e54ecd9ec Some error catching for the node cache 2020-08-21 15:54:31 +01:00
Tanya Byrne
a040b021ce Adding to the config so we can pick what kind of caching 2020-08-19 19:10:57 +01:00
Tanya Byrne
2da9199e18 updating to string for reason listed 2020-08-19 18:57:31 +01:00
Tanya Byrne
66eb748b24 update to get and set data 2020-08-19 18:48:39 +01:00
Tanya Byrne
b16d28ce23 get set for node cache service 2020-08-19 18:47:45 +01:00
Tanya Byrne
1d42e691d3 node cache service 2020-08-19 18:10:43 +01:00
Tanya Byrne
ec1d2f71a5 Merge branch 'main' into feature-redis-cache 2020-08-19 16:48:14 +01:00
rijkvanzanten
fac656ce91 Add ability to batch update multiple standalone items 2020-08-18 17:26:07 -06:00
rijkvanzanten
cfba7c5e07 Add sort field column to collections table 2020-08-18 17:16:37 -06:00
Ben Haynes
d242d2ede2 Add placeholder to role name 2020-08-18 16:07:28 -04:00
Tanya Byrne
ba07fc6006 Merge branch 'feature-rate-limiting' into feature-redis-cache 2020-08-18 18:49:23 +01:00
Tanya Byrne
413144a9d8 match formatting. 2020-08-18 18:23:52 +01:00
Tanya Byrne
8a03d4bbdc add to env varibles so user has choice
This is between 'redis' and 'memory'
2020-08-18 18:09:19 +01:00
Tanya Byrne
ad5fbbdd95 update env 2020-08-18 18:05:59 +01:00
Tanya Byrne
3177aa0323 Adding choice for caching rate limiting
This can be set in the config to 'redis' or 'memory'
2020-08-18 17:57:12 +01:00
Tanya Byrne
1f21377fdb Updated so there is an insurance cache if redis is not there 2020-08-18 14:23:08 +01:00
Tanya Byrne
542b4447c5 updating slightly - fixed a few bugs as was bypassing errors say if auth failed 2020-08-18 13:43:14 +01:00
Tanya Byrne
947a5ee557 Update rate-limiter.ts 2020-08-18 13:11:10 +01:00
Tanya Byrne
7019b194ee update point duration 2020-08-18 13:05:37 +01:00
Tanya Byrne
cc4e953e8b Update rate limiter to async 2020-08-18 12:47:24 +01:00
Tanya Byrne
ab03ac898f adding env variables for rate limiting 2020-08-18 12:29:54 +01:00
Tanya Byrne
3bd71f2ced need to add the prepublish too 2020-08-18 12:04:32 +01:00
Tanya Byrne
b5f00d5781 Update package.json to include build etc for windows 2020-08-18 12:02:34 +01:00
Tanya Byrne
a92059dcc4 move rate limiter and redis to optional dependancies
Will need to add mem store or similar
2020-08-17 19:11:57 +01:00
Tanya Byrne
e77be34c79 So exmaple env is included in git 2020-08-17 19:08:02 +01:00
Tanya Byrne
51f6845d77 Remove redundant dependancy 2020-08-17 19:03:51 +01:00
Tanya Byrne
6b6e3f5f2e update to 503 2020-08-17 18:59:50 +01:00
Tanya Byrne
c1f21217ac On second thoughts.. 2020-08-17 17:54:57 +01:00
Tanya Byrne
6b04b3f1f5 Should be using the errror handler for all errors 2020-08-17 17:51:33 +01:00
Tanya Byrne
eee7746165 Adding better exception handling to match everything else 2020-08-17 17:44:35 +01:00
Tanya Byrne
7dec7253ca I can't spell
sorry about that
2020-08-17 17:33:07 +01:00
Tanya Byrne
504d3014aa remove not needed 2020-08-17 17:31:09 +01:00
Tanya Byrne
b5644b113c change name 2020-08-17 17:06:34 +01:00
Ben Haynes
8b89bbf629 Merge branch 'main' of https://github.com/directus/next into main 2020-08-17 11:51:21 -04:00