Skip to content
Browse files

added an example cronjob to the demo which cleans up expired sessions

  • Loading branch information...
1 parent f9cc1fb commit f09ff6012db3a4bde56a5c1ccf68eab48bb16ce8 @dound committed May 6, 2010
Showing with 7 additions and 0 deletions.
  1. +3 −0 demo/cleanup_sessions.py
  2. +4 −0 demo/cron.yaml
View
3 demo/cleanup_sessions.py
@@ -0,0 +1,3 @@
+from gaesessions import delete_expired_sessions
+while not delete_expired_sessions():
+ pass
View
4 demo/cron.yaml
@@ -0,0 +1,4 @@
+cron:
+- description: daily session cleanup
+ url: /cleanup_sessions
+ schedule: every 24 hours

0 comments on commit f09ff60

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