quick hack to allow use of in-memory template cache in non-native

also fix bug with use of in-memory resource and file url cache