beaker icon indicating copy to clipboard operation
beaker copied to clipboard

Is a cache.lock_dir needed when using ext:database ?

Open neilferreira opened this issue 11 years ago • 2 comments

After having a read on http://turbogears.org/2.1/docs/main/Caching.html#configuring-beaker I just need to confirm this.

Do I need a cache.lock_dir directory when using ext:database? The docs make no mention of it unlike the file/memory cache, but I can see the lock_dir being referenced inside the code for sqlalchemy's handler.

neilferreira avatar Dec 16 '13 03:12 neilferreira

It apparently does not, as far as I know.

EndenDragon avatar Apr 29 '17 08:04 EndenDragon

Like any other cache the file lock is used to prevent dogpile effect. If it's not provided tempfile.gettempdir() will be used.

amol- avatar Apr 29 '17 08:04 amol-