Implement request caching in Redis so that we don't always have to fetch remote pages every time we want their mf2 items
This commit is contained in:
parent
b8a8cd62cf
commit
a7f6824334
5 changed files with 82 additions and 5 deletions
|
@ -134,6 +134,11 @@ CACHES = {
|
|||
'default': {
|
||||
'BACKEND': 'redis_cache.RedisCache',
|
||||
'LOCATION': '127.0.0.1:6380',
|
||||
'KEY_PREFIX': 'lemoncurry',
|
||||
'OPTIONS': {
|
||||
'DB': 0,
|
||||
'PARSER_CLASS': 'redis.connection.HiredisParser',
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue