def expire_cached_json
      all_json_properties.each do |properties|
        [true, false].each do |is_top_level_json|
          all_json_versions.each do |version|
            Mongoid::CachedJson.config.cache.delete(self.class.cached_json_key({
                                                                                 properties: properties,
                                                                                 is_top_level_json: is_top_level_json,
                                                                                 version: version
                                                                               }, self.class, id))
          end
        end
      end
    end
def expire_cached_json
      all_json_properties.each do |properties|
        [true, false].each do |is_top_level_json|
          all_json_versions.each do |version|
            Mongoid::CachedJson.config.cache.delete(self.class.cached_json_key({
                                                                                 properties: properties,
                                                                                 is_top_level_json: is_top_level_json,
                                                                                 version: version
                                                                               }, self.class, id))
          end
        end
      end
    end
Expire all JSON entries for this class.