user_activities 加cache

alan_develop
alan 10 years ago
parent 357c60d42e
commit 04b4823ac2

@ -56,6 +56,7 @@
</script>
<% unless user_activity.act_type == "ProjectCreateInfo" %>
<% act= user_activity.act %>
<% cache (user_activity) do %>
<% case user_activity.container_type.to_s %>
<% when 'Course' %>
<% if act %>
@ -100,9 +101,11 @@
<% end %>
<% end %>
<% end %>
<% end %>
<% else %>
<%= render :partial => 'project_create', :locals => {:activity => user_activity,:user_activity_id =>user_activity.id} %>
<% end %>
<% end %>
<% end %>

Loading…
Cancel
Save