added presave hook to clear cache