mirror of
https://github.com/google/nomulus.git
synced 2025-05-16 17:37:13 +02:00
Enable built-in session cleanup in alpha and sandbox
App Engine provides a servlet which deletes up to 100 expired _ah_SESSION entities from DataStore. This CL adds a cron job to call the servlet every 15 minutes in both alpha and sandbox. Assuming all goes well, we will turn it on in production. I originally learned about this servlet here: http://www.radomirml.com/blog/2011/03/26/cleaning-up-expired-sessions-from-app-engine-datastore/ But it appears that we do not need a servlet definition, just a cron entry. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=137533532
This commit is contained in:
parent
78a36925f4
commit
5f691d6329
2 changed files with 18 additions and 0 deletions
|
@ -166,5 +166,14 @@
|
|||
<target>backend</target>
|
||||
</cron>
|
||||
|
||||
<cron>
|
||||
<url><![CDATA[/_ah/sessioncleanup?clear]]></url>
|
||||
<description>
|
||||
Delete up to 100 expired _ah_SESSION entities from Datastore.
|
||||
</description>
|
||||
<schedule>every 15 minutes</schedule>
|
||||
<target>backend</target>
|
||||
</cron>
|
||||
|
||||
|
||||
</cronentries>
|
||||
|
|
|
@ -142,5 +142,14 @@
|
|||
</cron>
|
||||
-->
|
||||
|
||||
<cron>
|
||||
<url><![CDATA[/_ah/sessioncleanup?clear]]></url>
|
||||
<description>
|
||||
Delete up to 100 expired _ah_SESSION entities from Datastore.
|
||||
</description>
|
||||
<schedule>every 15 minutes</schedule>
|
||||
<target>backend</target>
|
||||
</cron>
|
||||
|
||||
|
||||
</cronentries>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue