<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -157,6 +157,11 @@ class User &lt; ActiveRecord::Base
     self.class.name
   end  
   
+  def touch
+    updated_at_will_change!
+    save
+  end
+  
   protected
   
   def followee_ids</diff>
      <filename>app/models/user.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,3 @@
-
 &lt;div class=&quot;more tabs&quot; id=&quot;tabs_for_track_&lt;%= object_id %&gt;&quot; style=&quot;display:none;&quot;&gt;
     &lt;ul&gt;
       &lt;li&gt;&lt;%= link_to 'comment', &quot;#comment_track_#{asset.unique_id}&quot; %&gt; &lt;/li&gt;
@@ -79,4 +78,4 @@
     &lt;/div&gt;
 	
 	
-  &lt;/div&gt;
\ No newline at end of file
+  &lt;/div&gt;</diff>
      <filename>app/views/assets/_asset_tabs.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -2,13 +2,11 @@
 &lt;div id=&quot;comment_&lt;%= object.unique_id %&gt;&quot; class=&quot;comment_asset&quot;&gt;
   &lt;div class=&quot;comment_form&quot;&gt;
     &lt;% form_for :comment, :url =&gt; user_track_comments_path(object.user, object), :id=&gt;&quot;comment_form_#{object.unique_id}&quot; do |f| %&gt;
+     
      &lt;div class=&quot;comment_as&quot;&gt;
-     &lt;% if logged_in? %&gt;
-        &lt;%= image_tag current_user.avatar(:tiny) %&gt;Say something, &lt;%=h current_user.name %&gt;:
-     &lt;% else %&gt;
-        &lt;%= image_tag 'icons/user.png' %&gt; Say something as a guest or &lt;%= link_to 'login', login_path, :title =&gt; 'login to alonetone' %&gt;:
-     &lt;% end %&gt;
+        &lt;!-- WILL BE REPLACED BY JS PAYLOAD TO ALLOW CACHING --&gt;
      &lt;/div&gt;
+     
      &lt;%= f.text_area :body, :rows =&gt; 4, :cols =&gt; 40, :class=&gt; 'double_trouble', :id=&gt;&quot;comment_body_#{object.unique_id}&quot;  %&gt;
      &lt;%= f.check_box :private, :class =&gt; 'private' %&gt; &lt;span class=&quot;public&quot;&gt;Make Private&lt;/span&gt;&lt;span class=&quot;private&quot; style=&quot;display:none;&quot;&gt;&lt;%= image_tag 'icons/private.png' %&gt; Only &lt;%=h object.user.name%&gt; will see this&lt;/span&gt;
      </diff>
      <filename>app/views/assets/_comment.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -19,7 +19,7 @@
     &lt;%= javascript_include_tag 'jquery-1.3.2.min','soundmanager','jquery-ui-1.7.1.custom.min','jquery-carousel','jquery-lowpro','jquery-hotkeys','facebox','twitter','application', 'highlight','tablesorter', :cache =&gt; 'allonetone' %&gt;
     
     &lt;!-- ensure token is available to javascript for accessible link posts, etc --&gt;
-    &lt;%= render :partial =&gt; 'shared/javascript_auth_token' %&gt;
+    &lt;%= render :partial =&gt; 'shared/javascript_payload' %&gt;
   
   &lt;/head&gt;
   &lt;body&gt;</diff>
      <filename>app/views/layouts/application.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -1,11 +1,15 @@
 &lt;% render(:layout =&gt; 'users/user') do %&gt;
   &lt;% content_for :left do %&gt;
-	&lt;div id=&quot;single_playlist&quot;&gt;
-		&lt;%= render :partial =&gt; @playlist %&gt;
-	&lt;/div&gt;
+  
+    &lt;% cache(&quot;#{@playlist.cache_key}&quot;) do %&gt;
+
+  	&lt;div id=&quot;single_playlist&quot;&gt;
+  		&lt;%= render :partial =&gt; @playlist %&gt;
+  	&lt;/div&gt;
+  	&lt;% end %&gt;
+  	
 	&lt;% end %&gt;
-	
+	  
     &lt;% content_for :right do %&gt;
-        &lt;%= render :partial =&gt; 'share', :object =&gt; @playlist %&gt;
     &lt;% end %&gt;
 &lt;% end %&gt;
\ No newline at end of file</diff>
      <filename>app/views/playlists/show.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,5 @@
-&lt;% div_for(small_user, :class =&gt; 'small_user') do %&gt;
-  &lt;%= user_image_link(small_user, :small)%&gt;
+&lt;% cache(&quot;#{small_user.cache_key}-pic-small&quot;) do %&gt;
+  &lt;% div_for(small_user, :class =&gt; 'small_user') do %&gt;
+    &lt;%= user_image_link(small_user, :small)%&gt;
+  &lt;% end %&gt;
 &lt;% end %&gt;
\ No newline at end of file</diff>
      <filename>app/views/shared/_small_user.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,4 @@
+
 &lt;div id=&quot;user_header&quot;&gt;
 
   &lt;%= link_to(image_tag(@user.avatar(:large), :class =&gt; 'small_avatar', :alt =&gt; &quot;#{h(@user.name)}&quot;), profile_path(@user), :class =&gt; 'image', :id=&gt;'alonetoner', :title =&gt; &quot;#{h(@user.name)}'s profile - all about #{h(@user.name)}&quot;) %&gt;
@@ -5,6 +6,9 @@
   &lt;div class=&quot;user_title&quot;&gt;
     &lt;h1 class=&quot;user&quot;&gt;&lt;%=h @user.name %&gt;&lt;/h1&gt;&lt;span class=&quot;user_location&quot;&gt;&lt;%= user_location(@user) %&gt;&lt;/span&gt;
       &lt;%= follow_toggle(@user) %&gt;
+  
+  &lt;% cache(&quot;#{user.cache_key}+#{authorized?}+#{admin?}&quot;) do %&gt;
+
     &lt;% if authorized? %&gt;
       &lt;%= link_to 'edit your profile', edit_user_path(@user), :class =&gt; &quot;edit_profile #{ admin? ? 'admin' : ''}&quot; %&gt;
       &lt;%= link_to image_tag('icons/alonetone_plus_small.png'), user_plus_path(@user), :class=&gt; 'alonetone_plus_link' if authorized? &amp;&amp; @user.plus_enabled? %&gt;
@@ -26,4 +30,5 @@
     &lt;/ul&gt;
   &lt;/div&gt;
 &lt;/div&gt;
+&lt;% end %&gt;
   &lt;%= yield %&gt;
\ No newline at end of file</diff>
      <filename>app/views/users/_user.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -16,7 +16,8 @@
 		
 		&lt;% if @user.has_public_playlists? %&gt;
 			&lt;h2 id=&quot;user_latest_playlists&quot;&gt;Latest Playlists by &lt;%=@user.name%&gt;&lt;/h2&gt;
-		  &lt;%= render :partial =&gt; 'shared/carousel' %&gt;
+		    &lt;%= render :partial =&gt; 'shared/carousel' %&gt;
+			
 			&lt;div class=&quot;clear&quot;&gt; &lt;/div&gt;
 		&lt;% end %&gt;
 	
@@ -37,7 +38,10 @@
 	  
 	  &lt;% content_for :right do %&gt;
     	  &lt;%= render :partial =&gt; 'popular' if present?(@popular_tracks) &amp;&amp; (setting('most_popular', @user) == 'true')%&gt;
+    	 
+    	  &lt;% cache(&quot;#{@user.id}+#{@comments.size}&quot;) do %&gt;
     	  &lt;%= render :partial =&gt; 'shared/comments' if @comments.size &gt; 0 %&gt;
+	      &lt;% end %&gt;
 	  &lt;% end %&gt;	
 		
 	&lt;/div&gt;</diff>
      <filename>app/views/users/show.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -3,11 +3,9 @@ ActionController::Routing::Routes.draw do |map|
 
   map.admin 'secretz', :controller =&gt; 'secretz'
   
-  # manual, ghetto, overriding links
   map.rpm_challenge 'rpmchallenge', :controller =&gt; 'pages', :action =&gt; 'rpm_challenge'
   map.twentyfour '24houralbum', :controller =&gt; 'pages', :action =&gt; 'twentyfour'  
   
-  
   map.feedback 'feedback', :controller =&gt; 'user_reports'
   map.resources :features, :sessions, :user_reports
   map.blog_home 'blog', :controller =&gt; 'updates', :action =&gt; 'index'</diff>
      <filename>config/routes.rb</filename>
    </modified>
    <modified>
      <diff>@@ -47,7 +47,27 @@ DismissableNotice = $.klass(Remote.PutLink,{
 
 
 FavoriteToggle = $.klass(Remote.Link,{
+  
+  // set the correct state to begin with
+  // based on whether it's included in userFavorites array
+  
+  initialize:function(options){
+    if(window.userFavorites.length &gt; 0){
+      item = jQuery.grep(window.userFavorites, function(element, index){
+        return element == options.asset_id; 
+      });
+      if(item.length &gt; 0){ // user has it as a fav
+        this.element.addClass('favorited');
+      }
+    }
+    $super();
+  },
+  
   beforeSend:function(e){
+    // modify the link to use the correct user's username
+    
+    
+    
     if(this.element.hasClass('favorited'))
       this.element.removeClass('favorited');
     else</diff>
      <filename>public/javascripts/application.js</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>app/views/shared/_javascript_auth_token.html.erb</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>151d821739813ba0871f5889a69afe0011f2ee85</id>
    </parent>
  </parents>
  <author>
    <name>Sudara</name>
    <email>sudara@alonetone.com</email>
  </author>
  <url>http://github.com/sudara/alonetone/commit/147826f379d3a204a2570c7158d4fea5feac0329</url>
  <id>147826f379d3a204a2570c7158d4fea5feac0329</id>
  <committed-date>2009-10-20T13:56:22-07:00</committed-date>
  <authored-date>2009-10-14T04:14:12-07:00</authored-date>
  <message>Some experimental caching fun</message>
  <tree>66a3e459959795dab6794c1825cffe6b252ce221</tree>
  <committer>
    <name>Sudara</name>
    <email>sudara@alonetone.com</email>
  </committer>
</commit>
