]> source.dussan.org Git - gitea.git/commit
Ensure memcache TTL cannot be over 30 days (#14592)
authorzeripath <art27@cantab.net>
Tue, 9 Feb 2021 22:29:03 +0000 (22:29 +0000)
committerGitHub <noreply@github.com>
Tue, 9 Feb 2021 22:29:03 +0000 (22:29 +0000)
commit30f7ddb833adfe276a93c1a79e243b8d33bdd41e
tree923227416de1d00b9158a43e64dcb0ceac2d5023
parent3a4801d1958ce33c9b893433c096281aa5b9b1c5
Ensure memcache TTL cannot be over 30 days (#14592)

Memcached TTL cannot be > 30 days and if it is attempted the TTL is interpreted as
a unix timestamp.

This PR ensures that the TTL is switched to a unix timestamp in those cases.

Fix #14571

Signed-off-by: Andrew Thornton <art27@cantab.net>
modules/cache/cache.go
modules/git/last_commit_cache.go
modules/git/last_commit_cache_gogit.go
modules/git/last_commit_cache_nogogit.go
modules/repository/cache.go
modules/setting/cache.go
routers/repo/view.go