Bugs: Browse | Submit New | Admin

[#15067] url_for__RFACEBOOK breaks page cache expiration

Date:
2007-10-26 03:31
Priority:
3
Submitted By:
Chris Nolan.ca (chrisnolan)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
url_for__RFACEBOOK breaks page cache expiration

Detailed description
ActionController::Caching ... expire_page takes a url_for and tries to remove the file from disk.

Unfortunately File.exists?(page_cache_path(path)) fails since http://apps.facebook.com/.... etc isn't found on the local
file system.

It's being called with

self.class.expire_page(url_for(options.merge(:only_path => true, :skip_relative_url_root => true, :action =>
action)))

-- perhaps your url_for could use one of :only_path or :skip_relative_url_root and not do it's magic then?

See http://ap.rubyonrails.com/classes/ActionController/Caching.html if you want to test out.

Add A Comment: Notepad

Please login


Followup

No Followups Have Been Posted

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item