Skip to content

Commit

Permalink
fix cache key so we don't confuse the feeds
Browse files Browse the repository at this point in the history
  • Loading branch information
tominsam committed Mar 28, 2012
1 parent 8e0fef8 commit 0a367cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fabfile.py
Expand Up @@ -54,7 +54,7 @@ def deploy():
sync_files() sync_files()
run("%s/bin/pip install -q -r %s/requirements.txt"%(VENV, DEPLOY)) run("%s/bin/pip install -q -r %s/requirements.txt"%(VENV, DEPLOY))
run("cd %s && %s/bin/python manage.py migrate"%(DEPLOY, VENV)) run("cd %s && %s/bin/python manage.py migrate"%(DEPLOY, VENV))
sudo("reload feedify") sudo("stop feedify; sleep 1; start feedify")


def get_database(): def get_database():
run("mysqldump -uroot feedify | gzip -c > /tmp/feedify-dump.sql.gz", shell=False) run("mysqldump -uroot feedify | gzip -c > /tmp/feedify-dump.sql.gz", shell=False)
Expand Down
2 changes: 1 addition & 1 deletion instagram/models.py
Expand Up @@ -57,7 +57,7 @@ def save(self, *args, **kwargs):




def get_photos(self, method="users/self/feed"): 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 self.last_time = None
photos = cache.get(cache_key) photos = cache.get(cache_key)


Expand Down

0 comments on commit 0a367cc

Please sign in to comment.