Added cache support for scripts