similar to: how do i cache this?

Displaying 20 results from an estimated 100000 matches similar to: "how do i cache this?"

2008 Sep 28
4
Cannot expire cache from background process?
Hello, I am trying to expire fragments (or at least trigger their expiration) from a daemon that''s running in the background. The daemon is updating all kinds of important lists every few minutes from the background. So I have to find some way to DO or TRIGGER the fragment caching from this daemon. Unfortunately just using the normal commands like: expire_fragment :controller =>
2008 Apr 15
0
How to cache dynamic CSS (RCSS)?
Hi, I''m using this tutorial: http://blog.hasmanythrough.com/2006/3/23/dirt-simple-rcss-templates to make dynamic CSS files. However I can''t figure out how expire cached CSS files. Here''s my code: http://pastie.caboo.se/181021. Most of it is copied from the tutorial. Files are cached properly - i.e. <%= stylesheet_link_tag "main" %> generates
2006 Oct 10
1
A few quick fragment cache questions
Doing some reading up on fragment cache before implmenting it and had a few questions: 1.) I read that page and action caching have issues or don''t work at all with query strings (more so with page caching). Does fragment caching work with query strings? i.e something like example.com/foo/bar?page=2 2.) If the above is true and I have an authentication system built into my app, if 2
2008 Apr 11
0
expiring cache outside controller (e.g. in rake tasks)
Hello, I need to expire cache outside controller, in my rake tasks. I want to use standard methods expire_fragment,etc.. but I can''t manage to use them outside controllers. I tried including ActiveController::Caching::Actions but didn''t work. Anyone has any solution? I''m losing my head how to do it... (besides manually deleting files) Thanks Uros
2006 Aug 25
1
Time based fragment caching plugin
I''ve written a plugin to allow for time based fragment caching. It lets you do things like: <% cache ''fragment_name'', 10.minutes.from_now do %> <p>something intensive which will be cached for 10 minutes</p> <% end %> Also, there''s a convenience method so that in your controllers you can do: when_fragment_expired
2007 Nov 21
0
Expiring page caches with regexp?
Is there a way to expire page caches using regular expressions like you can with fragment caches? I''m writing an app which has a catalogue style product listing but not full on e-commerce. It''s pretty simple; with just categories and products within them. A url for a product called "Band Saws" within the category "Heavy duty saws" would look like
2009 Mar 19
3
Settings for CDN, GZip, Header Expires for BEtter Yslow
Hi On my website i m getting B Grade with 87 points. Now i want to make it A and there is a scope to do that. I have added Google Analytics code which is y my gzip component and header expire grade goes to B from A. I need to use Google Analytics so cant i set header expires and gzip that? Another thing is that CDN is not something for a small website. So isnt there a way out where we can set
2007 Feb 15
2
Session not maintained - Please help
Hi, I''ve recently developed a website with ruby on rails, I''ve uploaded the website to my Servage account, after many hours i managed to get it to run on that host. The problem i now have is that Rails sessions are not maintained from page to page, the cookie is, as I''ve set it to expire only way into the future. I''ve tried various folder permission setting for
2006 Jun 28
8
How to obtain clients IP adress
Is it possible to obtain clients adress in ruby on rails? by TheR -- Posted via http://www.ruby-forum.com/.
2007 Jun 28
7
new to rails... suitable for what I wanna do?
Hi, I have created and now maintain the website ratsdeville.com (http:// ratsdeville.com/index_e.html for english) for my brother. He creates more and more content for it each week and I''m seriously feeling the pain now archiving everything manually and making sure that links works once items are archived (which I lost control of). Like you can see, it is basically a news site about art
2008 Mar 03
0
A kind of monkey patch and an invitation for criticism for all you (who know this stuff better than I do)
I''ve often felt the need including Rails'' view helpers within my controllers, if only for some simple things like formatting my flash notices with text helpers or html escaping. I loved this suggestion, which helps by not cluttering the namespace of controllers: http://snippets.dzone.com/posts/show/1799 But I wanted to generalize this a little to automatically include whatever
2012 Nov 03
1
Volatile cache keys with Rails and Redis
Does Rails automatically set an EXPIRE attribute on keys when working with Redis, or will an old key sit there forever if it''s never manually cleared out? This is mostly a concern when using ActiveModel''s "cache_key": <%= cache @post do %> The cache-key will be something like views/posts/744-20120613070958 . When the post is updated, and therefore gets a new
2006 Dec 09
2
anyone here have a RoR site on netfirms?
i jumped on a deal for netfirms hoping to use their service for my first rails app. however, their tutorials are lacking and i am having trouble kicking off my rails application. here are the directions they gave me: http://support.netfirms.com/idx.php/26/649/SCRIPTS--APPLICATIONS/article/Ruby-on-Rails-Quickstart-Guide.html but in those directions, it says nothing about configuring the fcgi
2008 Jan 01
2
un cache a page
how do i un-cache a page? i updated my application, and every works but the cached pages. for the cached pages, the old pages appear. thanks -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2008 Jun 23
2
From Instant Rails 2.0 to Rails 2.1.0 - cache problem
i''m trying to update to rails 2.1 using instant rails, so i can use the new cache features, but when i try to use the method "Rails.cache.write" in my controller, i get the message "undefined method `cache'' for Rails:Module (NoMethodError)" and if i try to set the cache store ("ActionController::Base.cache_store = :memory_store") in a conf file, i
2008 Jul 15
1
sex expire time for Sessions in memcached
Hi all, I have a problem with expiring sessions in the case with using mem_cache_store. I''ve been using ActiveRecord session store till now and expired them with SQL query. Yesterday I switched to memcache for storing sessions, however I can''t set an expireation period. My current config is this: ======================== memcache_options = { :c_threshold => 10_000,
2008 Oct 03
1
fragment caching with search box
I''m trying to setup some fragment caching which works fine for the index but i''m not sure how to ignore the caching if they are searching the index results. my code in short: ItemsController def index @items = Item.search(params[:search], params[:min_rank], params[:max_rank], params[:classification_id], ...) end index.html.erb <% cache (''items'',
2008 Nov 13
1
Fragment caching strangely honors the options I pass to it
Hi, In my view I have the following cache: <%- cache(:controller => ''products'', :action => ''index'', :action_suffix => ''footer'') do -%> ... <%- end -%> And that''s the file generated: tmp/cache/views/www.mysite.com/products.action_suffix=footer.cache Why isn''t fragment caching picking up the :index
2007 Mar 03
3
configure actionmailer to recieve email on localhost?
hi, is there a way i can configure my localhost to receive email using smtp? i can out emails fine but now would like to test/get-to-know how to handle incoming emails. if on my localhost:3000, do i do anything like below? ActionMailer::Base.server_settings = { :address=>''smtp.yourserver.com'', # default: localhost :port=>''25'',
2009 Mar 14
2
Rails, lighttpd and the Expires header
I have a controller that serves up images from a different location from /public/images/ by using send_file or send_data on /media/thumbs/ 38 for example In lighttpd I have: expire.url = ( "/media/" => "access 10 years", "/stylesheets/" => "access 10 years" , "/javascripts/" => "access 10 years",