Skip to content

Commit

Permalink
snippet cache invalidation on edit
Browse files Browse the repository at this point in the history
  • Loading branch information
Maximillian Dornseif committed Apr 26, 2015
1 parent 3455865 commit 2fe0193
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gaetk/snippets.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,5 +96,5 @@ def post(self):
snippet = gaetk_Snippet.get_by_id(id=name)
snippet.markdown = markdown
snippet.put()
memcache.delete('gaetk_snippet:%s:rendered' % name)
memcache.delete('gaetk_snippet2:%s:rendered' % name)
raise gaetk.handler.HTTP303_SeeOther(location=snippet.path_info)

0 comments on commit 2fe0193

Please sign in to comment.