diff --git a/api/tag.go b/api/tag.go index 5ca19e8..2d1689e 100644 --- a/api/tag.go +++ b/api/tag.go @@ -21,6 +21,9 @@ type Tag struct { } func (client *Client) FetchTag(tag string, sort string, page string) (Tag, error) { + // Dots are automatically removed on Imgur, so more cache hits + tag = strings.ReplaceAll(tag, ".", "") + cacheData, found := client.Cache.Get(tag + sort + page + "-tag") if found { return cacheData.(Tag), nil