MOODLE2: More intelligent purge cache