annotate app/views/tweets/show.atom.erb @ 107:de342c5df747

Extend cache time to up to 30 minutes
author nanaya <me@myconan.net>
date Sun, 30 Oct 2016 04:24:41 +0900
parents 3ad8e6d20e79
children 5075b243d7d0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
94
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
1 <?xml version="1.0" encoding="UTF-8"?>
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
2 <feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom">
95
dfd7daac110e Simpler syntax because I can
nanaya <me@myconan.net>
parents: 94
diff changeset
3 <id><%= atom_id(@user.id) %></id>
94
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
4
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
5 <link rel="alternate" type="text/html" href="<%= request.protocol %><%= request.host_with_port %>" />
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
6 <link rel="self" type="application/atom+xml" href="<%= request.url %>" />
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
7
95
dfd7daac110e Simpler syntax because I can
nanaya <me@myconan.net>
parents: 94
diff changeset
8 <title><%= "#{@user.name} (#{@user.screen_name})" %></title>
dfd7daac110e Simpler syntax because I can
nanaya <me@myconan.net>
parents: 94
diff changeset
9 <icon><%= @user.profile_image_url_https %></icon>
dfd7daac110e Simpler syntax because I can
nanaya <me@myconan.net>
parents: 94
diff changeset
10
106
3ad8e6d20e79 Fix atom feed compliances
nanaya <me@myconan.net>
parents: 96
diff changeset
11 <updated><%= (@tweets.first.try(:created_at) || Time.at(0)).xmlschema %></updated>
94
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
12
96
148d8c17cb79 Less monkeypatching rails, more monkeypatching tweet
nanaya <me@myconan.net>
parents: 95
diff changeset
13 <%= render :partial => "tweet", :collection => @tweets, :cached => true %>
94
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
14 </feed>