similar to: Caching with default routes

Displaying 20 results from an estimated 90000 matches similar to: "Caching with default routes"

2006 Mar 29
0
routes and caching
Hi there, I have the following route in my routes file: # - all film sub-pages (defaulting to index.html) map.connect ''films/:film_title/:page'', :controller => ''films'', :action => ''show'', :page => ''index.html'' which will pick up URLs like this:
2009 Aug 13
5
First hit on app takes a long time
So, I''ve deployed my first rails app, however I''m the only one hitting it for now. I''ve noticed that the first time I hit the app after some long period, it takes a really long time to respond (2-3 seconds). After that, it''s very fast. At first, I thought it might be my VPS "waking up" from some sleep state, but Rails does log the long load time
2005 Dec 18
0
Caching question
I''ve got caching mostly working but it''s acting string with the index/home. On the site I have a redirect the points http://nutritionreality.com at http://nutritionreality.com/home I do this in routes.rb by: map.index '''', :controller => ''home'', :action => ''index'' Caching happens on index (index.html gets created in
2007 Nov 21
1
Problem with route defaults and caching
Hi, I''m having a problem with routes and caching. I have two routes set up as follows in my route file... map.connect ''stats'', :controller => ''stats'', :action => ''index'' map.connect ''stats/:type'', :controller => ''stats'', :action => ''index'', :defaults => {:type
2006 Jun 14
1
page caching with custom routes
hi , I''m having problems with expire_page with custom routes i''ll show some code blog_controller --------------- def clear_cache_rss_artikels expire_page url_for(:controller => "xml",:action => "rss_artikels") end this is called when a new article is posted or edited or destroyed xml_controller --------------- class XmlController <
2006 Mar 25
1
routes mapping, subdomains and page-caching
Each of its own is no problem, but the combination of them is confusing my head ! I want to to map in routes.rb an url for an article which is identified by its permalink. The permalink is unique per subdomain. Has anybody done that and can post an example ? Should I do subdomain filtering in routes.rb so I can get page-cachabled URLs (and URL rewriting in Lighttpd form subdomain-urls to
2005 Dec 26
0
Rake (default task) overwrites development database?
I changed the subject to be more appropriate. Any idea why the development database would be effected? On 12/26/05, Ryan Wood <ryan.wood-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > Hey all. Hope you can help with this. I was running "rake" to run > tests on my server we are setting up for production. I''m currently > entering all my data into the dev
2006 Jun 14
1
simple-rss caching
The index page of my rails app grabs an rss feed from a neighboring news site. Unfortunately, the process of grabbing that feed seems to be slowing down the initial load time of my site to the point where it takes about 10-12 seconds to respond and render. I''d like to speed that up somehow (for 8-10 seconds it looks like my server is not responding at all..) Any suggestions? I
2005 Dec 18
2
Default routes for unknown actions
Hi folks- I have the following map for default ''junk'' routes: map.connect ''*anything'', :controller => ''welcome'', :action => ''unknown'' Which works just fine for a URL like: "mysite.com/junkjunkjunk" However, it still tries to resolve an action when I do: "mysite.com/my_controller/junkjunkjunk"
2010 Oct 04
4
http caching a dynamic page
Is it possible to take advantage of http caching/proxy caching with dynamic pages? i.e. pages with section/part that can change over time but certain part of the page remain the same. I would rather not keep re-rendering the static part but insure the dynamic part are rendered with fresh data. I am using memcached mostly as an object store that I can minimize db hits but I still am rendering a
2007 Apr 30
0
Cache routes.rb in development?
My routes.rb files uses resources and building the routes for each request takes a while. Is it possible to cache the routes during development, like they do in production, but without caching everything else? Thanks for your help. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google
2007 May 23
8
Rails Rendering diagnostics.rhtml in Controller Spec
Forgive me if this isn''t the proper list. It''s specific to the rSpec Rails plugin. The problem is, some controller actions are rendering the "diagnostics.rhtml" template when I''m expecting it to render something else in a controller spec. I''m assuming this is the template that displays the error message and a stack trace when an error is raised in the
2006 Feb 07
1
Page caching when name contains a dot (period)
Hi Everyone, Just thought I''d post some details of an interesting little quirk I''ve found with page caching. For a site I''ve just built for a small music festival, there are a number of artist profiles. I''m storing the artists in my database, but using caches_page to speed things up when displaying the details to the public. I''ve also made it so
2011 Feb 28
0
Patch for serious nil response bug when Action caching responses that are not cacheable
Hi guys, I''ve fixed a pretty annoying bug in Action caching that is detailed here: https://rails.lighthouseapp.com/projects/8994/tickets/6480-action-cache-filter-code-incorrectly-renders-nil-response-body-if-response-is-non-cacheable Would appreciate testers or a direct commit if it checks out :) Cheers, Chu Yeow -- You received this message because you are subscribed to the Google
2006 May 02
3
Route problem
I have an index.rhtml is rendered when the (main)controller is loaded. The page contains some check boxes and a submit button. See form code below. When I click the submit button, I get a 404. I don''t know how to post this data back to my controller where method "addvisit" is waiting. It works in WEBrick no problem, but doesn''t work in fcgi on DreamHost. I am
2012 Feb 05
4
Rspec and restful routes
Hi all, I''m trying to test that my users show page renders. The resource has the route /users/:id How would I code that for an Rspec test? So far I''ve tried these four ways: it "should have a users show path" do get user_path(:action => ''show'') end it "should have a users show path" do get user_show_path end it "should have
2006 Apr 02
0
Re: updating the dom - Solution
Easy solution. I am using the behaviour.js package. Using this, the solution was to apply a Behaviour.apply(); command when the XMLHttpRequest() is complete. So my solution was to use the form_remote_tag properties to help me call this like such: link_to_remote("questions", :url => { :action => ''curator_questions'', :uid => curator.id, :tid =>
2006 Apr 02
3
updating the dom
Hi list, Say I''ve got a page that lists the students names and grades. Grades are clickable using a form_remote_tag that then renders a new partial on the right hand side of the page that then lists the individual test scores for the particularly student. So far so good. And lets say in the newly rendered right-hand section, I have another form_remote_tag that will allow me to input a
2018 May 15
2
Persisting Routes In A Routing Table Other Than The Default
I need to add persistent routes to a policy routing table. I can add rules to an IP policy table after installing NetworkManager-config- routing-rules; but I have not found how to add routes to a table other than the specific table. Manually I do a: ip route add default via 192.168.1.6 dev ens192 table pods Rules load automatically via the /etc/sysconfig/network-scripts/rules- {interface}
2010 Aug 25
1
AD caching with Samba?
I'm not sure this is possible, I'm sort of leaning to the negative, but I thought i would ask anyway. (I am not a windows or domain networking guy) We have a large (and growing) number of windows servers. Many of them are DCs. While I read Samba can't serve as a BDC to a Windows PDC, can it just forward requests to the windows DC and just cache the results for future look ups? (with