mirror of
https://github.com/neocities/neocities.git
synced 2025-08-04 08:42:00 +02:00
hybridize the cache purging for transistion
This commit is contained in:
parent
a8a2462e05
commit
bdee6500ee
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue