Hi guys,
I’m with a problem here, on my application, the user can define his own URI. Like user UserA can create an uri like www.myapp.com/UserA UserB can create an uri like www.myapp.com/MyNiceUri
To catch this uri, i’m using this at the end of my routes.rb
map.connect ‘*path’ , :controller => ‘project’ , :action => ‘show’
On this controller, I’m also using page cache caches_page :show, :if => :project_exists
Well, so far, so good. But heres the problem.
If some user access the uri www.myapp.com/MyNiceUri rails will cache the MyNiceUri.html on /public Is some other user access www.myapp.com/MYNICEURI rails will cache MYNICEURIL.html on /public and do on…
Well, this sucks, since to sweep this cache, i have to try a lot of upper/lower case combination to make sure theres no cache file left on filesystem.
So, theres a way to solve this issue? I’m using passenger, maybe i should try any configuration on apache?
Any tips will help.
Regards,