Displaying 20 results from an estimated 100000 matches similar to: "Page Caching... extending it???"
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
2009 Dec 16
5
Caching comments: timestamps and subdomains
Hi,
I''m working on a website that has a very slow loading frontpage. I
wanted to start by caching certain elements that have high load. For
example, it loads the last 50 comments, along with the corresponding
usernames, avatars and more. So I cached that fragment and created a
sweeper that observes Comment and expires after every create or
destroy action.
However, I have two problems:
2011 Aug 07
9
How can I disable Rails 3.1's ActiveRecord Query Caching?
Hey guys,
As most of you know, Rails 3.1 introduces query caching for
ActiveRecord. Great change all-in-all, but for those of us with IT
department mandates for using MySQL (yeah, yeah, I know...), it''s kind
of a mixed bag.
I need to disable query caching in a project I''m building based on
3.1. I''ve tried a couple different approaches, both without any
success. I
2010 Sep 07
2
Caching
What is the best way to set up caching when GET parameters are
involved? For example I don''t want both /index and /index?
tags=example to be cached as index.html. Does that make sense?
Thanks,
Tom
--
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
2010 Feb 20
2
Extending Rails
Hi,
I am not sure how to extend Rails. I want to write a class where I can
Access my Models, like "User.all".
I tried to add a class in the lib/ folder but then ruby complains that
e.g. "User.all" with "NameError: uninitialized constant "
Is there a way to inherit my Rails functionality in a ruby class in
the /lib folder? Or am I going in the conplete wrong
2010 Sep 01
3
memcache in prod vs dev
I am using memcache for caching in my rails app and currently I have a
dev and a production environment.
I would like to run the dev environment without caching so that I can
debug more easily but I wanna enable the caching in production
obviously. I am using github and capistrano for deployment.
Without doing a check at every statement where I can potentially dig
into the cache, is there any
2011 Aug 28
1
Page Caching, CSRF, and Loading a form via Ajax
Hi all,
I would like to use page caching on my homepage, but also want to
enable people to sign in via a modal dialog sign in form. I could
have a setup in which when a user lands on the cached homepage, an
Ajax GET request pulls in the whole login form so that there is a
fresh authenticity token.
That said, besides the additional hit to the server, the CSRF token in
the head area of the page
2011 Mar 08
6
Windows /RailsInstaller- Webrick starts but welcome page doesn't load
I''m trying the RailsInstaller to get ROR installed on Windows.. everything
was going great(rake db:create/migrate and console working as expected)
until I started the server, webrick starts but the welcome page never loads,
no errors are displayed at all it just sits there forever, I looked at the
logs and there are no errors there either
Here is my configuration
Windows 7
Rails 3.0.4
2010 May 24
5
top 10/most popular lists
What''s the best way to handle views that show the top 10/most popular/
Recently updated/most commented type listing?
Should I have a separate model that is populated with records from
other models by a background job or should I need to use some sort of
caching? Perhaps both?
Thanks!
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2010 Jun 08
8
rails, ajax, json, and script
Could someone please demonstrate the code to send both json (or xml) AND
javascript (to be executed) in a single Ajax request?
Is this even possible?
--
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
2011 Sep 19
7
how to get instance variables in another action in rails 3
In my controller show method i have two instance variables which have
large amount of data and take much time to fetch from remote system.
shown below
def show
@graph = Koala::Facebook::GraphAPI.new(session[:fbuser]
["credentials"]["token"])
@friends = @graph.get_connections("me", "friends")
@friends =@friends.to_a
end
in the same controller I
2009 Dec 12
6
How to scrape a page without knowing its html structure
Hi,
I''m doing one module in my site, there I need to import user blog into
my site. I can use RSS feeds to read the blog information but using
RSS feeds I''m not getting entire information. So, I need to scrape the
user blog page. How to scrape a pages without knowing its html
structure of a page? Please anyone can help me for this issue. Thanks
in advance.
--
You received this
2012 May 03
3
inheritance with rails.
Hello.
I''ve read about examples on inheritance with rails.
Here is an example:
http://juixe.com/techknow/index.php/2006/06/03/rails-single-table-inheritance/
The way is to add a type field in the table.
So if I have an Animal class with an attribute name, I can inherit
from this class like:
Dog < Animal, Cat < Animal, and so on.
With the type field in the table I can do Dog.all,
2010 Sep 19
4
Rails 2.3.8 - InvalidAuthenticityToken problem. URGENT!
I used to have Simple Captcha installed, but since I removed it I got
all kinds of problems with login.
Processing UsersController#login (for 188.177.122.179 at 2010-09-19
12:21:09) [POST]
Parameters: {"commit"=>"OK", "authenticity_token"=>"/
Y0aZETCsMhyI3CkrZJK6O2NaLEoi+LRe8ZuDPWU9kc=",
2010 Nov 02
2
Why can I do a case insensitive Validation but not Find?
Why can I do this....
validates_uniqueness_of "username", :case_sensitive=>false
.... but not this....
User.where "Xx", :case_sensitive=>false
?
--
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
2010 Apr 13
3
Need clarification on mongrel, rails, threads, and performance
My understanding is that:
1. rails is single threaded and serves one request at a time
2. mongrel is single threaded and can process one rails request at a
time
3. mongrel_cluster starts a few mongrel servers on the same machine
Based on this, the single most important factor becomes the time it
takes to load a single page (to avoid blocking).
If this is all true, what''s considered a
2011 Apr 05
6
How to achieve Google Reader-like layout in Rails?
Hi
I''m trying to create a web application with a UI that is fundamentally
similar to Google Reader, in Rails 3 and probably with some Javascript
toolkit (jQuery?). I''m new to web development (my background is in desktop
application development), however, and after some experimentation with CSS
layout I''m frankly unsure of how to achieve the desired layout. Therefore
2011 May 26
3
Kaminari rspec testing undefined method page.
Someone use kaminari for pagination?
I''m doing some tests but I don''t know why I have an undefined method page.
Here is my simple test:
describe "GET index" do
it "assigns all fire_preventions as @fire_preventions" do
FirePrevention.stub(:search) { [mock_fire_prevention] }
get :index
assigns(:fire_preventions).should
2012 Sep 20
6
Good books about the internals of Rails 3
Hi, I''m a new RoR and Ruby developer and I''m searching for some good
resources (books or website) that go a little further than books like
the railstutorial (which is excellent btw).
But after reading this, I feel like as long as I''m working with
scaffolding and simple gems, it''s ok, and a lot can be accomplished with
this but I would like to have a deeper
2011 Jul 29
7
Rails and Service Oriented Architecture (SOA): any downsides?
Hey folks,
I like what I''m reading about improved performance via Service
Oriented Architecture for my Rails app. Stepping in that direction
will require some code reorganization, though. Has anyone regretted
the time invested in Rails SOA or suffered any other drawbacks that
might -- from a business perspective -- have disinclined them from
going SOA?
Lille
--
You received this