mirror of
https://git.maid.zone/stuff/soundcloak.git
synced 2026-01-06 02:49:38 +05:00
update deps; improve caching
This commit is contained in:
@@ -37,7 +37,7 @@ type Playlist struct {
|
||||
|
||||
func GetPlaylist(cid string, permalink string) (Playlist, error) {
|
||||
playlistsCacheLock.RLock()
|
||||
if cell, ok := PlaylistsCache[permalink]; ok && cell.Expires.After(time.Now()) {
|
||||
if cell, ok := PlaylistsCache[permalink]; ok {
|
||||
playlistsCacheLock.RUnlock()
|
||||
return cell.Value, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user