<commit_before>ProductsController.class_eval do
  def kelkoo
    @products = Product.active
  end
  
  def pipe
    @products = Product.active
    render :layout => false 
  end
end<commit_msg>adds action caching to prevent server overload<commit_after>ProductsController.class_eval do
  caches_action :kelkoo, :pipe, :expires_in => 1.hour

  def kelkoo
    @products = Product.active
  end
  
  def pipe
    @products = Product.active
    render :layout => false 
  end
end
{'fraction_non_alphanumeric': 0.07172995780590717, 'fraction_numerical': 0.002109704641350211, 'mean_word_length': 3.439252336448598, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5883893', 'n_tokens_mistral': 157, 'n_tokens_neox': 148, 'n_words': 42}