Displaying 20 results from an estimated 200000 matches similar to: "SOAP and caching"
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
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 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
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
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
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 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 ''+''
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 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 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 21
0
caching question
Hey, all-
Is there a way to tell caches_page to cache every page in a given
controller *except* a specific dynamic few? Most of the pages on our
site are static (right now, might change long term) and it would be a
lot easier/less error-prone to list the actions that *shouldn''t* be
cached than the ones that should.
Thanks-
Luis (trying to save himself a little time ;)
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 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 Jan 07
1
AWS, SOAP, and Exceptions
Can someone shed some light on how to convert an Exception to a
SOAPFault on Rails 1.0/AWS 1.0? I''ve been digging through the source
code and see that in soap_protocol.rb there is a method called
encode_response() that seems to perform the translation of an Exception
to a SOAPFault. However, if I use the following code block within my Web
Service controller:
def
2009 Mar 10
0
How to customize (<item> tags representing Array types) soap response XML with Web services implementation using AWS
Hi All,
I want to know that how can we customize the soap xml response xml
format that we get by implementing APIs using AWS in rails.
As an specification for array types Soap creates set of <item> tags.
so how can we replace these item tags with some meaningful names ?
Thanks in Advance.
Piyush.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you
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 Dec 27
1
SOAP + HTTP authentication
Hey,
Just had a question. Been pulling out my hair all weekend trying to get SOAP
to work properly in Rails and even straight on Ruby. I started with Rails''
AWS and moved to Ruby''s internal libraries, after which I tried out SOAP4R.
Now, my question is, does Rails or even Ruby itself support SOAP client
calls through basic HTTP Authentication? From the research I''ve
2007 Aug 09
0
layered SOAP webservices
Hi all,
My SOAP web service works with direct and delegated dispatching. But
as soon as I switch to layered, I get an error message
no such web service ''api''
Now, the actionwebservice/lib/action_web_service/protocol/
soap_protocol.rb, in function
decode_action_pack_request(action_pack_request),
service_name = action_pack_request.parameters[''action'']