mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-25 16:28:24 -04:00
experimenting with what's causing caching errors on staging
This commit is contained in:
1 parent
ed0739d56c
commit
a485778c06
1 file changed
+1
-1
+1
-1
@@ -95,7 +95,7 @@ class Crop < ActiveRecord::Base
|
||||
# it's inefficient to shuffle this up-front, but if we cache
|
||||
# the crops on the homepage it won't be run too often, and there's
|
||||
# not *that* many crops.
|
||||
Crop.all.shuffle.each do |c|
|
||||
Crop.all.each do |c|
|
||||
break if interesting_crops.length == howmany
|
||||
next unless c.interesting?
|
||||
interesting_crops.push(c)
|
||||
|
||||
Reference in new issue
Block a user