diff --git a/scrape.py b/scrape.py index 24e91bc..94ab943 100644 --- a/scrape.py +++ b/scrape.py @@ -176,9 +176,7 @@ async def main(): pass # trim the cache - # len(blog) is usually bigger than the count of posts in our category, - # so with len(blog) instead of the latter we have some buffer - while len(cache) > len(blog): + while len(cache) > 100: cache.remove(cache[0]) # set new cache event