molten-trunk/molten5_withgrid/lib/cache_cleaner_observer.rb
# Requests the page so the cache can be refreshed.
Requests the page so the cache can be refreshed.
Requests the page so the cache can be refreshed .
def refresh_page(url,current_contact = Sfcontact.find_by_email('derek.haynes@highgroove.com'))
    return if RAILS_ENV == 'test'
    p "[#{Time.now}] Refreshing cache for url [#{url}] and contact [#{current_contact.email}]"
    p URI.parse(  url_for( url.merge({:cache_key => AppConstants::CACHE_KEY, :cached_contact_id => current_contact.id}) ) )
    drbCacheBuilder.expire( url_for( url.merge({:cache_key => AppConstants::CACHE_KEY, :cached_contact_id => current_contact.id}) ) )
  rescue => e
    p "Error occured refreshing cache: #{e}"
  end
def refresh_page ( url , current_contact = Sfcontact . find_by_email ( 'derek.haynes@highgroove.com' ) ) return if RAILS_ENV == 'test' p "[#{Time.now}] Refreshing cache for url [#{url}] and contact [#{current_contact.email}]" p URI . parse ( url_for ( url . merge ( { :cache_key => AppConstants :: CACHE_KEY , :cached_contact_id => current_contact . id } ) ) ) drbCacheBuilder . expire ( url_for ( url . merge ( { :cache_key => AppConstants :: CACHE_KEY , :cached_contact_id => current_contact . id } ) ) ) rescue => e p "Error occured refreshing cache: #{e}" end
Requests the page so the cache can be refreshed.
Requests the page so the cache can be refreshed .
# Net::HTTP.get_print( URI.parse(  url_for( url.merge({:cache_key => AppConstants::CACHE_KEY, :cached_contact_id => current_contact.id}) ) ) )
url
current_contact
find_by_email