IdentityServer / IdentityServer3.EntityFramework

EntityFramework persistence layer for IdentityServer3
Apache License 2.0
68 stars 97 forks source link

Provide an option to turn TokenCleanup() off or set a custom interval #106

Closed mute001 closed 8 years ago

mute001 commented 8 years ago

Currently there is no option to control the background token cleanup task. It gets started in the Factory.Configure() with hardcoded 10sec interval. I propose to introduce an option to turn it off or run less often. This is to reduce the chance of locking the tokens table especially in a clustered setup when two or more instances of IS share the same operational db. You don't want them all hammer the tokens table with deletes every 10sec.

mute001 commented 8 years ago

Missed that it is done in the hosts's code. Please ignore.