We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 685fa14 + fd2f080 commit 06ffafcCopy full SHA for 06ffafc
lib/cortex/snippets/client.rb
@@ -15,13 +15,7 @@ def cortex_client
15
end
16
17
def current_webpage(request)
18
- if defined?(Rails)
19
- Rails.cache.fetch("webpages/#{request_url(request)}", expires_in: 30.minutes) do
20
- cortex_client.webpages.get_feed(request_url(request)).contents
21
- end
22
- else
23
- raise 'Your Web framework is not supported. Supported frameworks: Rails'
24
+ cortex_client.webpages.get_feed(request_url(request)).contents
25
26
27
private
0 commit comments