Add caching to `_tags_associated_with_category()`

Because `_tags_associated_with_category()` makes some expensive database queries, it should be appropriately cached.