Skip to content

Commit

Permalink
cache: Remove one 0 from hash name check to cache more URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
octonawish-akcodes authored and spbnick committed Aug 25, 2023
1 parent db54b88 commit fdbfca7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kcidb/cache/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ def store(self, url):
"""
object_name = self._format_object_name(url)

# Cache every 4096th URL only for the trial period
if not object_name.endswith("000"):
# Cache every 256th URL only for the trial period
if not object_name.endswith("00"):
return

blob = self.client.bucket(self.bucket_name).blob(object_name)
Expand Down

0 comments on commit fdbfca7

Please sign in to comment.