public
Description: The open source social networking platform in Ruby on Rails from the author of RailsSpace
Homepage: http://insoshi.com
Clone URL: git://github.com/insoshi/insoshi.git
Search Repo:
Removed fragment caching for front page
Michael Hartl (author)
Thu May 01 14:55:52 -0700 2008
commit  81c7177a110d8be0dc99a0a39734940f830a2818
tree    0d47e84314808000fc80214edc4f8c71d118ae55
parent  b96919179aa5ced2c709ee21a95d972855fe1a89
...
3
4
5
6
7
8
9
...
3
4
5
 
6
7
8
0
@@ -3,7 +3,6 @@
0
 
0
 class ApplicationController < ActionController::Base
0
   helper :all # include all helpers, all the time
0
- cache_sweeper :activity_sweeper
0
   include AuthenticatedSystem
0
   include SharedHelper
0
   include PreferencesHelper
...
10
11
12
13
14
15
16
...
10
11
12
 
13
14
15
0
@@ -10,7 +10,6 @@
0
       @some_contacts = current_person.some_contacts
0
       @requested_contacts = current_person.requested_contacts
0
     else
0
- # TODO: make a helper for this
0
       @feed = Activity.global_feed
0
     end
0
     respond_to do |format|
...
 
1
2
3
...
1
2
3
4
0
@@ -1,3 +1,4 @@
0
+# This is currently unused, but a nice example of how to make a cache sweeper.
0
 class ActivitySweeper < ActionController::Caching::Sweeper
0
   observe Activity
0
   
...
1
2
3
4
5
6
7
8
9
10
...
1
2
3
 
 
 
 
4
5
6
0
@@ -1,10 +1,6 @@
0
 <%- column_div :type => :primary do -%>
0
   <%- if logged_in? -%>
0
     <%= render :partial => 'feed' %>
0
- <%- else -%>
0
- <%- cache(:part => "feed") do -%>
0
- <%= render :partial => 'feed' %>
0
- <%- end -%>
0
   <%- end -%>
0
 <%- end -%>
0
 

Comments

    No one has commented yet.