Implemented cached scripts invalidation