Added btflushtemplatecache().