i perform a rake task with a cron, in this task i have 2 problems:

-i using a constant name setting in my config/environment.rb, when i try
to run the rake job on the "environment developer" the constant is read
an the job works fine, but when i try on the "environment production"
the constant seem not include in the job.

-on the cron job i want to delete 3 cache fragments, i try this:
      expire_obj = ActionController::Base.new
      expire_obj.expire_fragment(%r{(.*)part=my_first_part.cache})
      expire_obj.expire_fragment(%r{(.*)part== my_first_second.cache})
      expire_obj.expire_fragment(%r{(.*)part= my_third_part.cache})
when i run on "environment developer" the fragments are deleted, but
when i try on the "environment production" they aren't.

any solutions?
-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to