fix bugs; move to gocron for scheduled jobs
This commit is contained in:
@@ -262,16 +262,6 @@ func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
// __all__ or torrents folder
|
||||
// Manually build the xml
|
||||
ttl = 30 * time.Second
|
||||
//if served := h.serveFromCacheIfValid(w, r, cacheKey, ttl); served {
|
||||
// return
|
||||
//}
|
||||
//// Refresh the parent XML
|
||||
//h.cache.RefreshListings(false)
|
||||
//// Check again if the cache is valid
|
||||
//// If not, we will use the default WebDAV handler
|
||||
//if served := h.serveFromCacheIfValid(w, r, cacheKey, ttl); served {
|
||||
// return
|
||||
//}
|
||||
}
|
||||
|
||||
if served := h.serveFromCacheIfValid(w, r, cacheKey, ttl); served {
|
||||
|
||||
Reference in New Issue
Block a user