pingthepeople / ptp-web

Web front-end for Ping the People
https://pingthepeople.org
2 stars 0 forks source link

Possible key collision in shared cache #16

Closed jhoerr closed 6 years ago

jhoerr commented 7 years ago

Test/Prod app servers use the same Redis cache. Our existing key names (e.g. bills) introduce a possibility that caching any environment-specific values could lead to a collision. We might consider disambiguating cache keys with a postfix that indicates the environment e.g. bills:prod / bills:test. The process that invalidates the cache can search for any key starting with e.g. bills and invalidate them when appropriate.

jhoerr commented 6 years ago

Fixed in 2.0.0