tpl/partials: Fix partialCached deadlock regression
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 2 Mar 2022 09:04:29 +0000 (10:04 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 2 Mar 2022 10:16:21 +0000 (11:16 +0100)
commit9b8b6d34e2d039bfc040fd865a2e77ce2c278587
treec8324f237e7de24a50f83034e254f44d50bd20dc
parent376704d382df163c7a0db066900f021ea5f7894d
tpl/partials: Fix partialCached deadlock regression

This is a rollback of  0927cf739fee9646c7fb917965799d9acf080922

We cannot do that change until we either completes #9570 or possibly also use the new TryLock in GO 1.18.

Fixes #9588
Opens #4086
tpl/partials/integration_test.go
tpl/partials/partials.go