Caching question

I’ve got caching mostly working but it’s acting string with the

On the site I have a redirect the points at

I do this in routes.rb by:
map.index ‘’, :controller => ‘home’, :action => ‘index’

Caching happens on index (index.html gets created in public) but rails
create/cache home.html - which slows the site down. If I copy
public\index.html -> public\home.html I get the performance increase but
rails will never create home.html on it’s own. What am I missing?

Here is my home_controller.rb file. Initially it just had “def index”
but I
added “def home” while trying various solution.

class HomeController < ApplicationController

caches_page :index
caches_page :home

layout “ui”

def index
@siteoption = Siteoption.GetSiteOptionHash(“Home”)
@header_image = @siteoption[“header_image”]
@header_text = @siteoption[“header_text”]
@blogentry_pages, @blogentries = paginate :blogentry, :per_page =>
:order_by => ‘created_on asc’, :conditions => “blog_id = 10”
render(:template => “/home/index”)

def home
render(:action => :index)


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs