Cache fix

Currently, invalidating the cache only invalidates cached values for the current set of filtered models, not the entire set, which leaves models that had previously been filtered out permanently gone. This pull request instead clears the whole cache.