Skip to content
This repository has been archived by the owner on Apr 17, 2020. It is now read-only.

spree-contrib/spree_page_cache

Repository files navigation

⚠️ Deprecation notice ⚠️

Since Spree 4.1 this extension is deprecated and not needed. Spree 4.1 supports full page caching out of the box

SpreePageCache

This gem makes it safe to fully cache pages in spree application.

It doesn't specifiy what pages / actions to cache as that's application specific, but it does include coarse sweepers for products and taxon.

You generally need to include the following overrides into your application:

Spree::HomeController.class_eval do
  caches_page :index
end

Spree::ProductsController.class_eval do
  caches_page :index, :show
end

Spree::TaxonsController.class_eval do
  caches_page :index, :show
end

Setup

Add this to your gem file Gemfile

gem "spree_page_cache"

rake spree_page_cache:install

Copyright (c) 2011 Neeraj Singh, released under the New BSD License

About

Minor tweaks to make Spree pages suitable for page caching

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published