mirror of
https://github.com/YunoHost/SSOwat.git
synced 2024-09-03 20:06:27 +02:00
[fix] Clean cache update according to last commit.
This commit is contained in:
parent
d809c8de6a
commit
696f09c8c2
1 changed files with 8 additions and 3 deletions
11
access.lua
11
access.lua
|
@ -598,9 +598,14 @@ function do_edit ()
|
||||||
maildrop = drops })
|
maildrop = drops })
|
||||||
then
|
then
|
||||||
cache:delete(user.."-"..conf["ldap_identifier"])
|
cache:delete(user.."-"..conf["ldap_identifier"])
|
||||||
for _, v in ipairs({2, 3, 4, 5, 6, 7, 8, 9, 10}) do
|
local i = 2
|
||||||
cache:delete(user.."-maildrop|"..v)
|
while cache:get(user.."-mail|"..i) do
|
||||||
cache:delete(user.."-mail|"..v)
|
cache:delete(user.."-mail|"..i)
|
||||||
|
i = i + 1
|
||||||
|
end
|
||||||
|
while cache:get(user.."-maildrop|"..i) do
|
||||||
|
cache:delete(user.."-maildrop|"..i)
|
||||||
|
i = i + 1
|
||||||
end
|
end
|
||||||
set_headers(user) -- Ugly trick to reload cache
|
set_headers(user) -- Ugly trick to reload cache
|
||||||
flash("win", t("information_updated"))
|
flash("win", t("information_updated"))
|
||||||
|
|
Loading…
Add table
Reference in a new issue