Skip to content
This repository
Browse code

Cleanup tweak

git-svn-id: https://potato.codebasehq.com/getfavicon/getfavicon.svn/trunk@22 0c1c7bd3-9391-4859-b94e-4e2dcdc6a516
  • Loading branch information...
commit 42ffeb171c18f68b3811e224f5e2ba2214449667 1 parent 96a96a0
jason authored

Showing 2 changed files with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +1 1  cron.yaml
  2. +1 1  main.py
2  cron.yaml
... ... @@ -1,4 +1,4 @@
1 1 cron:
2   -- description: Hourly cache cleanup
  2 +- description: Cache cleanup
3 3 url: /_cleanup
4 4 schedule: every 1 minutes
2  main.py
@@ -55,7 +55,7 @@ class cleanup(BaseHandler):
55 55
56 56 def get(self):
57 57 iconCacheCleanQuery = favIcon.gql("where dateCreated < :1",datetime.now()-timedelta(days=DS_CACHE_TIME))
58   - iconCacheCleanResults = iconCacheCleanQuery.fetch(100)
  58 + iconCacheCleanResults = iconCacheCleanQuery.fetch(500)
59 59 db.delete(iconCacheCleanResults)
60 60
61 61

0 comments on commit 42ffeb1

Please sign in to comment.
Something went wrong with that request. Please try again.