Cache by Page

Extension for Radiant CMS which enables per page admin option of setting caching to a non-default value, or turning it off altogether

  • Created by: Andrew vonderLuft
  • Contact: avonderluft [at] avlux [dot] net

Revision History

  • 1.0 – 4/2009 – Radiant 0.7 compatible, per page caching options

Requirements

  • Radiant 0.7 or greater
  • no other known dependencies

Installation

From your RADIANT_ROOT:

  • $ script/extension install cache_by_page
  • Restart your radiant app, and you should be good to go.

Installation

From the Radiant Extension Registry

  1. From your RAILS_ROOT run:
    script/extension install cache_by_page
  2. Restart your app NOTE: In some earlier versions of Radiant, the migrations may not run, and the assets may not be copied and you may therefore need to run:
    rake radiant:extensions:cache_by_page:migrate
    

From Github

  1. From your RAILS_ROOT run:
    cd vendor/extensions
    git clone git://github.com/avonderluft/radiant-cache_by_page-extension.git ./cache_by_page
    cd ../../
    rake radiant:extensions:cache_by_page:migrate
    
  2. Restart your app

Using the gem

  1. Install the gem
    gem install radiant-cache_by_page-extension
  2. Update your Radiant config: add to environment.rb with other gem.configs
    config.gem ‘radiant-cache_by_page-extension’, :lib => false
  3. Run database migrations
    rake db:migrate:extensions
  4. Restart your app

Usage

See Admin help doc

Acknowledgments

As always, Sean Cribbs lent assistance with the finer points of Ruby, Rails and Radiant. The Jupiter of Holst is still exquisite, even if it is a little bit of overkill for a podcast.