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.
1 parent fca2738 commit fd2f080Copy full SHA for fd2f080
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