added clear_cache functionality (not working right now due to missing root privs)