Fixed bug with MongoDB Connection leak because of the faulty template cache logic
Merge commit '1698406'