Displaying 20 results from an estimated 1300 matches similar to: "Caching comments: timestamps and subdomains"
2010 Jan 21
4
Redirect www to non-www
How to redirect www to non-www? e.g redirect www.example.com to
example.com
Thanks
Johnny
--
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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
2006 Jan 10
6
Can we cache user home pages?
Hi Railers,
I am trying to create a simple application like a guest book which has users
and uses sessions to keep track of
which users are logged on. The user''s page is constructed after doing some
SQL queries and the user clicks on another link and hits the back button I
dont want to regenerate the whole page (which is what happens now) .So I
want to use some kind of caching mechanism.
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
2007 Oct 21
4
Making 'expire_fragment' available to a model?
I noticed a lot of repetition across different Sweeper models in my
app expiring the same fragments and so have been trying to move all
the expire_fragment calls into another model which the sweepers can
then use but it''s not working as I''d hoped..
I''ve created a CacheDestroyer model and want to be able to call
something to the effect of:
2009 Feb 18
4
expire_fragment with memcached
Hello all,
We know that memcached or memcached-client doesn''t support regex... But
It seems it doesn''t support expire_fragment either :/
I''m trying to use expire_fragment with memcached as following :
expire_fragment(:controller => ''home'', :action => :list_posts)
But apparently it''s not supported by memcached :
RuntimeError (Not
2006 Jan 16
0
expire_fragment problem
Hello,
I am trying to invalidate a cached fragment.
My fragment looks like
<% cache (
:controller=>''users'',:action=>''additem_to_cart'',:action_suffix=>@user.id) %>
At this point,rails has created 2 cache files correctly and everything works
fine becuase I dont see rails making calls to the SQL db to get items from
DB.Instead it uses cache.
Now
2006 Jan 31
2
Fragment caching and pagination
I''m just getting my hands dirty with caching. The pages I want to cache have
some user specific data on them (for example "log out"). That sent me down
the route of fragment caching. One of the things I want to pagination is a
paginated list. My question is how is pagination and query strings handled
with fragment caching? Does each page get its own fragment and query string
2008 Jan 31
2
Odd things happening in ie6/ie7
As always, i am again having problems in IE6 and IE7 with scripts.
The scripting works fine in FF2, opera and Safari. IE just wont load
it. Could anyone help?
It''s a static page for now, located at www.maifith.com/research/index.html
The problem,although quite obvious, is that it doesn''t load the JS in
IE6 or IE7. Any help would be appreciated.
2005 Nov 04
1
expire_fragment outside of a controller
I am trying to figure out a way to call the
expire_fragment outside of a controller. I need to
expire some fragments on a hourly basis. I have a
Thread that every hour that will perform a task. The
expire_fragment is located in the module
ActionController::Caching::Fragments as an instance
method.
Do I need to mixin the model
ActionController::Caching::Fragments into my class?
Or is there
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
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 =>
2010 Dec 01
10
How to Redirect from http://mysite.com to https://www.mysite.com on Herok
Hello I''m looking to learn how to redirect all non-www (mysite.com) to
https://www.mysite.com
I tried the following:
class ApplicationController < ActionController::Base
before_filter :check_uri
def check_uri
redirect_to request.protocol + "www." + request.host_with_port +
request.request_uri if !/^www/.match(request.host) if Rails.env ==
2012 Feb 03
10
ruby on rails 3 tutorial book chapter9 Signin Failure
Hi I have problem trying to pass the signin failure test.
This is the test code of the sessions_controller.rb
def create
user = User.authenticate(params[:session][:email],
params[:session][:password])
if user.nil?
flash.now[:error] = "Invalid email/password combination."
@title = "Sign in"
render
2008 Mar 06
3
cache_sweeper
Hi,
Why is cache_sweeper not a documented method? I was pretty sure it
used to be, but I could be wrong. I can''t seem to find any
information on it anymore in the online docs.
As a side note, looking at the code for cache_sweeper it appears to
only work with the :only option, not :except (ignores it)... what''s
the reason for this?
Thanks,
Andrew
2006 Jun 09
2
Virtualhost, Alias & Subdomains
I am having a problem with subdomains, alias & virtual hosts
Centos 4.3, Apache 2.0.52 & PHP 5.04
I can get the primary to work, but not the aliased servers.
http.conf extract
*********
NameVirtualHost *
<VirtualHost *>
ServerName www.domain.com
DocumentRoot /var/www/html/domain/
ServerAlias www.altdomain.com <http://www.altdomain.com>
</VirtualHost>
<VirtualHost
2006 Jun 28
7
caching objects
Hi,
i just wanted to say my sorries in advance (sorrie/sorry/sorri)...i have
just started learning about the subject of caching, but unfortunately
haven''t effictively managed to implement what i had learned.
obviously it''s possible to cache a whole page, or action with the
caches_page :x or caches_action :y methods, but for some reason it
hasn''t really worked with
2006 Jan 18
2
How do you get link_to to work correctly when using subdomains as account keys?
When using subdomains as account keys (as per this HowTo:
http://wiki.rubyonrails.org/rails/pages/HowToUseSubdomainsAsAccountKeys),
how can you get link_to to spit out the correct URL (i.e.
account123.domain.com)?
<%= link_to "My Account", { :action => "show", :id => "account123" }
%> would generate "http://www.domain.com/show/account123"
I
2010 Jun 24
1
Custom account subdomains with Rails 3
Hi,
I needed to handle custom account subdomains with Rails and I wrote a
simple rack middleware for that http://github.com/drogus/rack-subdomain.
It works by mapping any subdomain to given PATH. For example when user
hits drogus.example.org/account and mapping is /users/:subdomain, it
will map the request to example.org/users/drogus/account
I accomplished it with rack middleware, cause I wanted
2006 Aug 17
2
mod_proxy and subdomains..
hi, everyone..
i am trying to set up an app like so:
www.domain.com -> points to main php application..
subdomain.domain.com -> proxies to www.domain.com:8000 <- this is
running on mongrel..
i just cannot figure out how to phrase this in my httpd.conf...
does anyone have any ideas?
thanks!
--
Posted via http://www.ruby-forum.com/.
2011 Oct 27
1
creating subdomains
HI All,
I surfed a lot , googled a lot , read/watched railscasts but could not get
the solution.
Below is my problem.
1) I wanted a parent domain www.xyz.com. This parent domain will have two
subdomains abc.xyz.com and def.xyz.com.
The parent domain will have a admin user who has capability to create/manage
subdomains.
The subdomains should an a siteadmin user who can edit the site