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
-

booss April 3rd, 2008 @ 05:31 AM
Hi Jaroslaw Zabiello,
Thanks for reporting !
It should now work using HEAD version.
Cheers,
booss
-

booss May 2nd, 2008 @ 05:06 AM
Fixed, thanks for reporting.
-
Michael Klishin (antares) May 11th, 2008 @ 07:48 AM
- → Milestone changed from to 1.0 (Nearish Future)
- → State changed from new to open
-
Cheah Chu Yeow May 30th, 2008 @ 04:25 AM
Should this be marked as closed?
-
Michael Klishin (antares) May 30th, 2008 @ 04:30 AM
- → State changed from open to resolved
- → Assigned user changed from to Michael Klishin (antares)
Closing, feel free to leave a comment if something still works not as advertised, someone sure will re-open it.
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 »
