mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
move proxy delete logic to other conditional
This commit is contained in:
parent
36765afb5c
commit
d394b2601e
1 changed files with 5 additions and 2 deletions
|
@ -1021,6 +1021,11 @@ class Site < Sequel::Model
|
||||||
$redis_proxy.hset d_www_key, 'ssl_cert', ssl_cert
|
$redis_proxy.hset d_www_key, 'ssl_cert', ssl_cert
|
||||||
$redis_proxy.hset d_www_key, 'ssl_key', ssl_key
|
$redis_proxy.hset d_www_key, 'ssl_key', ssl_key
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if is_deleted
|
||||||
|
$redis_proxy.del d_root_key
|
||||||
|
$redis_proxy.del d_www_key
|
||||||
|
end
|
||||||
else
|
else
|
||||||
$redis_proxy.hdel u_key, 'domain'
|
$redis_proxy.hdel u_key, 'domain'
|
||||||
end
|
end
|
||||||
|
@ -1031,8 +1036,6 @@ class Site < Sequel::Model
|
||||||
|
|
||||||
if is_deleted
|
if is_deleted
|
||||||
$redis_proxy.del u_key
|
$redis_proxy.del u_key
|
||||||
$redis_proxy.del(d_root_key) if defined?(d_root_key)
|
|
||||||
$redis_proxy.del(d_www_key) if defined?(d_www_key)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
true
|
true
|
||||||
|
|
Loading…
Add table
Reference in a new issue