Sha256: ac9371c67fdf9e35614367c06342037a20e43101c96e5ff0aca46046e50cbcdd
Contents?: true
Size: 811 Bytes
Versions: 1
Compression:
Stored size: 811 Bytes
Contents
cache_key :product do Product end cache_key :color_variation do [ColorVariation] end cache_key :product_and_color_variation do [Product, ColorVariation] end scope :product do cache_method :slow_method cache_method :slow_method_with_args cache_class_method :slow_class_method cache_class_method :slow_class_method_with_args end scope :color_variation do cache_method :slow_method, 'product' cache_method :slow_method_with_product do |s| s.product end cache_class_method :slow_class_method, 'product' cache_field :product_code, :from => [:product, :code] end cache_includes "nocache_time", :no_cache => true cache_includes "expires_in_time", :expires_in => 2.days cache_includes "products_time", "product", "color_variation" cache_includes "helper_time" do current_user end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
qor_cache-0.0.3 | config/qor/cache.rb |