Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix cache key so we don't confuse the feeds

  • Loading branch information...
commit 0a367cc531d46c280b785d0da86279315440cf53 1 parent 8e0fef8
@tominsam authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  fabfile.py
  2. +1 −1  instagram/models.py
View
2  fabfile.py
@@ -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
2  instagram/models.py
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.