#90 √ resolved
Jaroslaw Zabiello

cache_page does not work for more than one controller

Reported by Jaroslaw Zabiello | March 25th, 2008 @ 09:02 PM | in 1.0 (Nearish Future)

#config/inir.tb
#...
Merb::Plugins.config[:merb_cache] = {
    :cache_html_directory => Merb.dir_for(:public) / "cache",
    :store => "file",
    :cache_directory => Merb.root_path("tmp/cache"),
#...

# app/controllers/about.rb
class About < Application
  cache_page :index
  def index
    render
  end  
end

# app/controllers/news.rb
class News < Application
  cache_page :index  
  def index
    render
  end  
end
merb -e production

Going into http://localhost:4000/about and http://localhost:4000/sites creates ONLY ONE cache file "public/cache/about.html". No mater how many controllers I have, only one is always cached. It is very strange.

Comments and changes to this ticket

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins