1
0
mirror of synced 2025-12-20 10:28:40 -05:00
Commit Graph

2 Commits

Author SHA1 Message Date
James M. Greene
72140bb8bb Remove use of commander from release script rather than adding it as a required production dependency (#17215) 2021-01-07 14:15:10 -06:00
James M. Greene
bca0682e93 Add release script to soft-purge all rendered pages from the Redis cache (#17164)
* Create a release script to soft-purge all rendered pages from the Redis cache

* Set NODE_ENV

* Pass the Redis database number as an option rather than in the URL

* Change key scanning pattern based on Heroku metadata presence

* Shorten purge TTL to 30 minutes

* Only fail hard on Heroku production releases

* Don't return TOO early or else we forget to resume the scanStream!

* Correct ioredis command casing to all lowercase

* Add unexpectedly necessary exit

* Tweak wording of dry run logging

* Add some polish

* Prevent accidental soft-purging of the current release's keys

* Simplify the key check

* Fix lint error
2021-01-07 13:50:24 -06:00