File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -102,16 +102,12 @@ def fresh_when(opts = {})
102
102
# 加入页面上直接调用的信息用于组合 etag
103
103
opts [ :etag ] << current_user
104
104
# Config 的某些信息
105
- opts [ :etag ] << Setting . app_name
106
105
opts [ :etag ] << SiteConfig . custom_head_html
107
106
opts [ :etag ] << SiteConfig . footer_html
108
- opts [ :etag ] << SiteConfig . faye_server
109
- opts [ :etag ] << Setting . google_analytics_key
110
107
# 加入通知数量
111
108
opts [ :etag ] << unread_notify_count
112
109
# 所有 etag 保持一天
113
110
opts [ :etag ] << Date . current
114
- opts [ :etag ] << Time . now if not Rails . env . production?
115
111
super ( opts )
116
112
end
117
113
end
Original file line number Diff line number Diff line change @@ -123,10 +123,10 @@ def create
123
123
124
124
def preview
125
125
@body = params [ :body ]
126
-
126
+
127
127
respond_to do |format |
128
128
format . json
129
- end
129
+ end
130
130
end
131
131
132
132
def update
You can’t perform that action at this time.
0 commit comments