Added tag cache
updated tests
added test & fixed cache bug
Added cached clear methods and associated test