Version 1.1: implement cache update on activation and deactivation