Displaying 20 results from an estimated 40 matches for "perform_caching".
2009 Apr 18
0
A bug in sweeper.rb? [was: A frustrating and strange error when config.action_controller.perform_caching = true]
I fired up the debugger and watched the code happen tonight.
The problem occurs if the config.action_controller.perform_caching = true in
your environment. It''s not set to true in development but it is set to true
in production and staging.
The problem occurs not in my controllers but in sweeping.rb (part of rails).
Rails calls this code for every controller which was instantiated in the
same request ( I think). R...
2009 Sep 03
7
Strange NoMethodErrors in production mode, I just don't know what to do.
Hi,
thanks for reading. Since hours, I am facing a problem and it seems
that I am not able to solve it.
Let''s say, I''ve got a model called "AnnotationType". This model has
got a method called "foobar(x)". It''s just so simple. I can access
this method in my unit tests, in the console (all modes), but if I
start the server in production mode and try
2009 Apr 17
0
A frustrating and strange error when config.action_controller.perform_caching = true
Hello all.
I am having a hell of a problem and it''s driving me nuts. I get the
following error (undefined method `controller_name'' for nil:NilClass): but
only when config.action_controller.perform_caching = true
I googled around some and found this thread
http://groups.google.com/group/communityengine/browse_thread/thread/b84154e5228bf9f3which
suggests it may be a conflict with a pllug in controller but I don''t
see any two controllers with the same name.
This particular controller is usin...
2007 Oct 27
1
Edge Javascript caching just not working
...673515" type="text/
javascript"></script>
<script cached="true" src="/javascripts/application.js?1189968913"
type="text/javascript"></script>
I''ve tried setting production.rb with both the default:
config.action_controller.perform_caching = true
and:
ActionController::Base.perform_caching = true
to no avail.
Did the syntax change? Is this just not implemented yet?
Stephen
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk&qu...
2006 Apr 11
11
I can''t get rails to see my plugin. How can I this?
...een
by rails before I did any real coding. Thanks in advance for any
assistance.
module ActionController::Caching::Pages::ClassMethods
# Expires the page that was cached with the +path+ as a key. Example:
# expire_page "/lists/show"
def expire_each_page(path)
return unless perform_caching
benchmaddrk "EXPIRED ALL PAGES: #{page_cache_file(path)}" do
File.delete(page_cache_path(path)) if
File.exists?(page_cache_path(path))
Dir.foreach(page_cache_path(path)) {|x| benchmark ("Got " + x) }
end
end
end
--
Posted via http://www.ruby-forum.com/.
2009 Jun 10
1
[PATCH] remove rails2.3 deprecated config.action_view.cache_template_extensions
...rb
index b3acf68..9bd4fa6 100644
--- a/src/config/environments/development.rb
+++ b/src/config/environments/development.rb
@@ -33,7 +33,6 @@ config.whiny_nils = true
# Show full error reports and disable caching
config.action_controller.consider_all_requests_local = true
config.action_controller.perform_caching = false
-config.action_view.cache_template_extensions = false
config.action_view.debug_rjs = true
# Don't care if the mailer can't send
--
1.6.0.6
2005 Sep 27
2
caching in development mode
...rollers are not cached, neither are models
extending ActiveRecord::Base. Has anyone else seen this?
Here are my relevant development.rb settings:
Dependencies.mechanism = :load
ActionController::Base.consider_all_requests_local = true
ActionController::Base.perform_caching = false
thanks,
Jeff
2008 Sep 12
1
Ruby Pages Not Updating
I am a complete beginner to Ruby. I followed the tutorial to create my
own scaffold called Books. My problem is that, when I make changes to
its index.html.erb, the http://url/books page does not update for a
few minutes. I am using a development environment, and the
config.action_controller.perform_caching value is already set to
false. Any help would be appreciated!
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3...
2006 Aug 01
2
Same <img> is still downloaded for several times in IE
...e question here that if one article item has a
default icon in front of its title,the icon will be downloaded as many
times as the article items displayed in one page in IE. I was suggested
to modify some options under development enviroment,eg:
config.cache_classes and config.action_controller.perform_caching in
development.rb are both set to true.But the problem still exist under IE
while not in firefox, Are more options needed to be set to fix it?
One of my page have about 250 items each of which has a default
icon,which means that a little icon will be requested 250 times through
mongrel or webri...
2007 Sep 07
2
memcached and fragment storage, session storage with a mongrel cluster
...hieve a meaningful performance gain for a particular
app.
I searched around a bit and simply added two lines to my
development.rb:
config.action_controller.fragment_cache_store = :mem_cache_store
config.action_controller.session_store = :mem_cache_store
(I also changed config.action_controller.perform_caching = true for
testing )
This works like a charm on my development box. (Mac) I''ve got
memcached -vv
running in another terminal window I can see it doing it''s thing.
However, as soon as I tried this on my production box, (by adding the
above lines to production.rb) I ran into so...
2010 Jun 08
1
session_options[:secure] resets session_id on every request
....
# Code is not reloaded between requests
config.cache_classes = true
# Use a different logger for distributed setups
# config.logger = SyslogLogger.new
# Full error reports are disabled and caching is turned on
config.action_controller.consider_all_requests_local = false
config.action_controller.perform_caching = true
# Enable serving of images, stylesheets, and javascripts from an asset
server
# config.action_controller.asset_host =
"http://assets.example.com"
# Disable delivery errors if you bad email addresses should just be
ignored
# config.action_mailer.raise_...
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
2013 Jun 18
1
Getting rspec error: Net::SMTPServerBusy: Relay access denied
...ig.use_transactional_fixtures = true
config.infer_base_class_for_anonymous_controllers = false
endend
Spork.each_run do
FactoryGirl.reloadend
test.rb:
Upficial::Application.configure do
config.whiny_nils = true
config.consider_all_requests_local = true
config.action_controller.perform_caching = false
config.action_mailer.delivery_method = :testend
The test itself is very straightforward:
require ''spec_helper''
describe User do
it "sends a confirmation email" do
@user = FactoryGirl.create(:user, email: "model_spec-hcDgGtZH8xNBDgjK7y7TUQ@public.g...
2012 Oct 02
4
Rails Default ETag Generation
How does Rails generate ETags by default? I''ve got config.action_controller.
perform_caching set to true in production so that I can use page-level
caching in a few specific places, but it seems that Rails is automatically
setting ETags on *all* responses even though I''m not using fresh_when or
the stale? helpers in any of my actions. How is Rails deciding to do this
and how d...
2008 Apr 30
12
Strange memory issue
Like most, I have a test and a production env. Both are CentOS 5, Ruby
1.8.6, Rails 2.0.2, MySQL 5, and Apache. Both were setup using the
same procedure. Except for the hardware (test: Intel, prod: AMD) and
memory (test: 512M, prod: 1G), both systems are essentially the same
right down to the Rails env. Unfortunately, memory usage is very
different for each.
The test system has 2 mongrel
2007 Mar 24
6
Rails Development Log
Hi,
I am using Ruby+Rails with Mongrel.
Is there any way to disable logging so that everytime I start rails
(mongrel_rails start), it doesn''t automatically start logging info to
development.log
Thanks!
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on
2006 Jul 12
0
Odd "sweep" error on older code
...cleanup_without_session_management_support''^M
/usr/home/minter/rails/iscaweb/config/../vendor/rails/actionpack/lib/
action_cont
roller/session_management.rb:123:in
`process_cleanup_without_components''^M
...
###
Thinking it was some caching issue, I set
ActionController::Base.perform_caching = false in my environment.rb,
with no luck.
I realize it''s kind of vague, but does anyone have any suggestions on
where to look to find out why I''m getting a "nil.sweep" in my code?
--Wade
2006 Jun 25
0
debug output does not show up in the browser window
...uests
from 127.0.0.1." I can not make this work, I only get the wsod in the
browser, and all the debug output in the log/development.log file. In my
config/environments/development.rb I have the following:
config.action_controller.consider_all_requests_local = true
config.action_controller.perform_caching = false
config.action_view.debug_rjs = true
config.action_controller.debug_routes = true
This is a simple app with not much in it yet. I am doing something
worng? Can someone please help me put the degub info in the browser?
Thanks,
steve
--
P...
2006 Nov 05
0
Any workaround for Rails caching?
...erent buffer structure
to Markaby. I''ll
> try to get it working soon.
>
> Cheers,
> Tim
Do you have any ideas how to approach it? Looking at
Rails'' code:
# Called by CacheHelper#cache
def cache_erb_fragment(block, name = {}, options
= nil)
unless perform_caching then block.call; return
end
buffer = eval("_erbout", block.binding)
if cache = read_fragment(name, options)
buffer.concat(cache)
else
pos = buffer.length
block.call
write_fragment(name, buffer[pos..-1],
options)
end...
2006 May 31
1
Using caches_action ?
...actionpack-1.12.1/lib/action_controller/filters.rb:226>]
returned false
Completed in 0.01000 (100 reqs/sec) | DB: 0.00000 (0%) | 200 OK
[http://localhost/forum/view_thread/6]
Fwiw, I''ve changed environment.rb to enable caching (page caching works
fine) with
config.action_controller.perform_caching = true
Dev environment (xp, ruby184, rails112)
Any ideas ?
Erik
--
Posted via http://www.ruby-forum.com/.