hybridize the cache purging for transistion

This commit is contained in:
Kyle Drake 2017-07-23 11:09:29 -07:00
parent a8a2462e05
commit bdee6500ee

View file

@ -14,6 +14,8 @@ class PurgeCacheWorker
# Must always have a forward slash
path = '/' + path if path[0] != '/'
$redis_proxy.publish 'proxy', {cmd: 'purge', key: "#{username}#{path}"}.to_msgpack
url = Addressable::URI.encode_component(
"https://#{proxy_ip}#{path}",
Addressable::URI::CharacterClasses::QUERY