From ce8c2c236f0615e58295979e0bee4db3137818d9 Mon Sep 17 00:00:00 2001 From: Umputun Date: Mon, 9 Jul 2018 02:52:13 -0500 Subject: [PATCH] add last scope --- backend/app/rest/api/rss.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/rest/api/rss.go b/backend/app/rest/api/rss.go index b8f801cf..12245848 100644 --- a/backend/app/rest/api/rss.go +++ b/backend/app/rest/api/rss.go @@ -98,7 +98,7 @@ func (s *Rest) rssRepliesCtrl(w http.ResponseWriter, r *http.Request) { siteID := r.URL.Query().Get("site") log.Printf("[DEBUG] get rss replies to user %s for site %s", userID, siteID) - data, err := s.Cache.Get(cache.Key(cache.URLKey(r), siteID), func() (res []byte, e error) { + data, err := s.Cache.Get(cache.Key(cache.URLKey(r), siteID, "last"), func() (res []byte, e error) { comments, e := s.DataService.Last(siteID, maxLastCommentsReply) if e != nil { return nil, errors.Wrap(e, "can't get last comments")