Displaying 20 results from an estimated 30000 matches similar to: "caching question"
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
2006 Mar 22
0
page caching
I''m trying to use the following methods (extract):
expire_page :controller => "site", :action => "funding"
cache_page :controller => "site", :action => "welcome"
to rebuild my entire site cache from an admin page, but I can''t seem to get the cache_page function to work. looking at the docs there seem to be 2 versions of
2006 Feb 04
4
Page caching feeds and cache file extensions
I have a feeds controller which generates RSS and Atom pages. I put
''caches_page :show'' in it. The problem is that the pages are saved with
an html extension. As a result, browsers display the cached feeds as
HTML rather than XML, and feed validators complain.
There''s an option to set ''Base.page_cache_extension'' globally, but I
don''t want
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
2006 Mar 09
0
Caching problem: expire_page not working
Hi all,
I''m new to rails and I''ve run in to a rather insidious bug. In
development (with caching turned on in development.rb), my app
successfully caches action "index" in controller "view":
class ViewController < ApplicationController
caches_page :index
def index
# do the stuff that index does
end
end
I''ve got a sweeper
2006 May 17
2
Caching doesn''t work at all...
Installed RoR under lighttpd and noticed that caching some actions
didn''t accelerate page serving. The following little example of
class TestscriptController < ApplicationController
caches_page :index
def index
@string = Time.now.to_s
end
end
and
<html>
<head>
<title>Test</title>
</head>
<body>
<p>Test</p>
<p><%=
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 Jul 22
0
SOAP and caching
Hi,
Is it possible to cache page/action within AWS?
The method caches_page doesn''t seem to work, nothing is being cached.
Thanks.
2005 Jun 26
4
calling controller and caching from a sweeper class
[cross-posting to rails and typo lists]
Hi,
I''m tinkering with the code for typo, a rails-based blog engine.
Typo has an XmlController with actions "rss" and "atom" which generate feed.xml
files, and it uses a caches_page declaration to cache the files that get
generated by those actions. It also has a Sweeper (Observer) class that expires
those cached files when a
2005 Apr 27
3
caches_page questions
I''m attempting to use caches_page to speed up the loading of certain
pages on my site, and have run into a couple questions:
1) The site has ''states'' (as in U.S. states), so I have a State model
and a States controller. Going to http://sitename/states/ routes you to
the States controller, ''index'' action. The States controller looks like so:
class
2008 Sep 24
3
caches_page :if not executing (but caches_action :if) does
Hi folks -
Seeing a weird problem and would love some help. It''s documented in
http://pastie.org/278310 to be more readable.
In short, I have a
caches_page "action", :if => {stuff}
but the :if is never being called - the action is just caching every
time. (If I put a debugger call in the :if block, it never stops.)
If I replace caches_page with caches_action, the if
2006 Nov 04
0
page caching urls with space characters broken in webrick and mongrel
Page caching of urls with spaces in them using WEBrick and Mongrel is
broken in Edge Rails (and Rails 1.1.6, where I started). This is due
to the dispatch flow of control in both servers converting ''+'' in
requested paths into '' '' chars, whereas the page caching system writes
cache files for URLs with spaces in them out as encoded ''+''
2006 Aug 22
1
Why the caches_page can not work?
Hi,I want the page to be cached and be accessed by all users.And in my
controller:
class MyController < ApplicationController
caches_page :show
def show
render :layout => false
end
end
When I use link_to_remote to use My/show to update some div, i can not
see the template has been cached. However,If I use
<%= render_component :controller => ''My'',
2006 Apr 11
0
Page cache and query string
I''ve read about the problems of using page cache when there''s a query
string, i.e. /article/list?page=1 will cache /article/list.html, then
/article/list?page=5 will retrieve /article/list.html regardless of
query string.
I''m using a workaround, it looks almost obvious but since I haven''t
found it mentioned anywhere I''m afraid there''s some
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 Aug 19
1
caches_page does not follow url path
I am using lighttpd. I have a controller (headlines) with a caches_page
:index. When invoked via http://0.0.0.0:3000/headlines/ I find a
index.html cached in the public folder. The server did not create a
headlines folder and place the cached index page within the controller
directory as expected. Is there a configuration detail I need to change?
2005 Mar 10
6
images from database + caching
Is the information in
http://wiki.rubyonrails.com/rails/show/HowtoUploadFiles on caching
images still the best way on how to cache images that are served from
the database?
I haven''t added time information to my image table yet, and the images
are sent after every single page view (even if it''s been downloaded
already).
Joe
2005 Mar 16
6
caches_page problem
I''m currently caches_page the show method in my Image controller. The
show method looks at @params[''id''] to determine what output should be
generated.
The first time I access the method, say with
http://localhost/public/image/show/1.jpg, the appropriate directories
get created in /public (i.e. public/image/show/1.jpg). However, when
I try to retrieve
2018 Oct 30
0
Problem with cached userdb info
Hi,
I'm having a problem with my cached userdb information.
These are my passdb and userdbs:
passdb {
driver = ldap
args = /etc/dovecot/dovecot-ldap.conf.ext
}
userdb {
driver = prefetch
}
userdb {
driver = ldap
args = /etc/dovecot/dovecot-ldap-userdb.conf.ext
}
In /etc/dovecot/dovecot-ldap-userdb.conf.ext (userdb) I have:
user_attrs =
2005 Aug 19
2
Block device caching causes out of memory in dom0
We run our dom0''s with 128MB of RAM using xen 2.0.6, kernel 2.6.11 for
dom0 and domUs, and typically have ~10 domUs per server. All the domU
filingsystems are loopback files served from dom0 using the file
method.
We''ve found that really busy servers sometimes get out of memory
problems on dom0. This appears as lots of x-order memory allocation
failures with a variable