added a procedure for explicit clearing of the term cache