Permalink
Browse files

fix cache key so we don't confuse the feeds

  • Loading branch information...
1 parent 8e0fef8 commit 0a367cc531d46c280b785d0da86279315440cf53 @tominsam committed Mar 28, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 fabfile.py
  2. +1 −1 instagram/models.py
View
@@ -54,7 +54,7 @@ def deploy():
sync_files()
run("%s/bin/pip install -q -r %s/requirements.txt"%(VENV, DEPLOY))
run("cd %s && %s/bin/python manage.py migrate"%(DEPLOY, VENV))
- sudo("reload feedify")
+ sudo("stop feedify; sleep 1; start feedify")
def get_database():
run("mysqldump -uroot feedify | gzip -c > /tmp/feedify-dump.sql.gz", shell=False)
View
@@ -57,7 +57,7 @@ def save(self, *args, **kwargs):
def get_photos(self, method="users/self/feed"):
- cache_key = 'instagram_items_%s'%self.id
+ cache_key = 'instagram_items_%s_%s'%(self.id, method)
self.last_time = None
photos = cache.get(cache_key)

0 comments on commit 0a367cc

Please sign in to comment.