Inlined purge_kernel_caches()

refs #58