app/models/solidus/elastic_product/serializer.rb
# The exact same as taxon.ancestors only all the taxons and determined once
# and cached. After that it is just a lookup.
The exact same as taxon.ancestors only all the taxons and determined once
and cached. After that it is just a lookup.
The exact same as taxon . ancestors only all the taxons and determined once and cached . After that it is just a lookup .
def reset_cache!
          max_updated_at = Spree::Taxon.maximum(:updated_at)
          if max_updated_at != @cached_at
            @cached_at = max_updated_at
            @by_id = nil
            @ancestors_by_taxon = nil
          end
        end
def reset_cache! max_updated_at = Spree :: Taxon . maximum ( :updated_at ) if max_updated_at != @cached_at @cached_at = max_updated_at @by_id = nil @ancestors_by_taxon = nil end end
The exact same as taxon.ancestors only all the taxons and determined once
and cached.
The exact same as taxon . ancestors only all the taxons and determined once and cached .