<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,8 +1,13 @@
 &lt;% id = &quot;asset_#{asset.unique_id}-#{rand(1000)}&quot; %&gt;
 &lt;% content_tag :div, :id =&gt; id, :class =&gt; 'asset ' + cycle('odd', 'even') do %&gt;
-  &lt;% render :layout =&gt; 'assets/asset_layout', :locals =&gt; {:asset =&gt; asset, :referer =&gt; (@referer) } do %&gt;
-     &lt;%= link_to h(asset.user.name), user_home_path(asset.user), :class =&gt; 'artist', :title =&gt; &quot;#{h(asset.user.name)} on alonetone &quot; %&gt;
+  &lt;% cache(asset.cache_key+'layout') do %&gt;
+    &lt;% render :layout =&gt; 'assets/asset_layout', :locals =&gt; {:asset =&gt; asset, :referer =&gt; (@referer) } do %&gt;
+       &lt;%= link_to h(asset.user.name), user_home_path(asset.user), :class =&gt; 'artist', :title =&gt; &quot;#{h(asset.user.name)} on alonetone &quot; %&gt;
+    &lt;% end %&gt;
   &lt;% end %&gt;
 &lt;% end %&gt;
 
-&lt;%= render :partial =&gt; 'assets/asset_tabs', :locals =&gt; {:asset =&gt; asset, :id =&gt; id} unless @single_track %&gt;
+&lt;% cache(asset.cache_key+'tabs') do %&gt;
+
+ &lt;%= render :partial =&gt; 'assets/asset_tabs', :locals =&gt; {:asset =&gt; asset, :id =&gt; id} unless @single_track %&gt;
+&lt;% end %&gt;
\ No newline at end of file</diff>
      <filename>app/views/assets/_asset.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -1,13 +1,15 @@
 &lt;!-- alonetone home page --&gt;
 &lt;%= render :partial =&gt; 'shared/self_confidence' unless logged_in? %&gt;
 
-&lt;% unless @playlists.blank? %&gt;
-&lt;div id=&quot;latest_playlists&quot;&gt;
+&lt;% cache(@playlists.first.cache_key+'plisthome') do %&gt;
+  &lt;% unless @playlists.blank? %&gt;
+  &lt;div id=&quot;latest_playlists&quot;&gt;
 
-  &lt;h2&gt;Latest albums &amp;amp; playlists&lt;/h2&gt;
-  &lt;%= render :partial =&gt; 'shared/carousel' %&gt;
+    &lt;h2&gt;Latest albums &amp;amp; playlists&lt;/h2&gt;
+    &lt;%= render :partial =&gt; 'shared/carousel' %&gt;
 
-&lt;/div&gt;
+  &lt;/div&gt;
+  &lt;% end %&gt;
 &lt;% end %&gt;
 
 &lt;% content_for :left do%&gt;
@@ -20,10 +22,13 @@
         :class=&gt; 'view_all_recent_music', :title =&gt; 'latest music on alonetone' %&gt;
   &lt;/div&gt;
   
+  &lt;% cache(@comments.first.cache_key+&quot;commenthome&quot;) do%&gt;
   &lt;h2 id=&quot;latest_comments&quot; class=&quot;box&quot;&gt;Latest Comments&lt;/h2&gt;
   &lt;div class=&quot;box&quot;&gt;
     &lt;%= render :partial =&gt; 'shared/comment', :collection =&gt; @comments%&gt;
   &lt;/div&gt;
+  &lt;% end %&gt;
+  
   &lt;div class=&quot;footer_box&quot;&gt;
    &lt;%= link_to ' ', all_comments_path, 
      :class =&gt; 'view_all_comments', :title =&gt; 'view latest comments' %&gt;
@@ -32,8 +37,6 @@
 
 
 &lt;% content_for :right do %&gt;
-    
-    &lt;%= render :partial =&gt; 'features/feature', :object =&gt; @feature if @feature %&gt;
 
 	&lt;h2 id=&quot;kicking_ass&quot; class=&quot;box&quot;&gt;Currently kicking ass&lt;/h2&gt;
 
@@ -52,8 +55,9 @@
     &lt;%= render :partial =&gt; 'assets/asset', :collection =&gt; @followee_tracks %&gt;
     &lt;/div&gt;
   &lt;% end %&gt;
-  
-   &lt;h2 id=&quot;recently_favorited&quot; class=&quot;box&quot;&gt;Recently favorited&lt;/h2&gt;
+
+  &lt;% cache(@favorites.first.cache_key+'favshome') do %&gt;
+  &lt;h2 id=&quot;recently_favorited&quot; class=&quot;box&quot;&gt;Recently favorited&lt;/h2&gt;
   &lt;div class=&quot;box&quot;&gt;
     &lt;%= render :partial =&gt; 'shared/favorite', :collection =&gt; @favorites %&gt;
   &lt;/div&gt;  
@@ -61,6 +65,8 @@
     &lt;%= link_to ' ', radio_path(:per_page =&gt; 40, :source =&gt; 'favorites'), 
       :class =&gt; 'view_all_favorites', :title =&gt; 'alonetone radio: recently favorited' %&gt;
   &lt;/div&gt;
+  &lt;% end %&gt;
+
 &lt;% end %&gt;
 
 &lt;% content_for :bottom do %&gt;</diff>
      <filename>app/views/assets/latest.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,6 @@
 &lt;% javascript_tag do %&gt;
   window.authenticityToken = '&lt;%= form_authenticity_token %&gt;'; 
-  window.username = '&lt;%= @user.login %&gt;'; 
+  window.username = '&lt;%= logged_in? ? @user.login : &quot;Guest&quot; %&gt;'; 
   window.userFavorites = &lt;%= (logged_in? ? current_user.favorite_asset_ids : [] ).to_json%&gt;;
   window.userPersonalization = '&lt;div class=&quot;comment_as&quot;&gt;' + 
      &lt;% if logged_in? %&gt;</diff>
      <filename>app/views/shared/_javascript_payload.html.erb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>a1cf53f3b9de56e4acf66d5692b639fca27b6568</id>
    </parent>
  </parents>
  <author>
    <name>Sudara</name>
    <email>sudara@alonetone.com</email>
  </author>
  <url>http://github.com/sudara/alonetone/commit/488bf96170c1701db738c1017b4bf294465437a1</url>
  <id>488bf96170c1701db738c1017b4bf294465437a1</id>
  <committed-date>2009-10-27T11:43:17-07:00</committed-date>
  <authored-date>2009-10-18T14:38:43-07:00</authored-date>
  <message>Pretend to cache out the home page to see what the perf gains are</message>
  <tree>ecb1f43fb09aa1ac2ee4191a038420070878307b</tree>
  <committer>
    <name>Sudara</name>
    <email>sudara@alonetone.com</email>
  </committer>
</commit>
