Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

uncache listings

  • Loading branch information...
commit c4d17d9628d7b817c6ee7ab79b4239fa5053dcba 1 parent 8b67ec9
@actsasflinn authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/controllers/snippets_controller.rb
View
4 app/controllers/snippets_controller.rb
@@ -3,9 +3,9 @@ class SnippetsController < ApplicationController
# GET /snippets.xml
def index
if params[:q].blank?
- @snippets = Snippet.language(params[:language_id]).tag(params[:tag_id]).cached_paginate(:page => params[:page], :include => [:taggings, :language], :order => 'snippets.created_at desc')
+ @snippets = Snippet.language(params[:language_id]).tag(params[:tag_id]).paginate(:page => params[:page], :include => [:taggings, :language], :order => 'snippets.created_at desc')
else
- @snippets = Snippet.cached_search(params[:q]).compact
+ @snippets = Snippet.search(params[:q]).compact
end
@language = Language[params[:language_id]] unless params[:language_id].blank?

0 comments on commit c4d17d9

Please sign in to comment.
Something went wrong with that request. Please try again.