Skip to content

Commit 0880d21

Browse files
committed
Revert "Enable HTTP client caching."
This reverts commit 7bc6977. Cache needs a dedidcated backing store to be effective across runs, defer it now.
1 parent ea15889 commit 0880d21

File tree

8 files changed

+112
-120
lines changed

8 files changed

+112
-120
lines changed

lib/nanoc/github.rb

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,6 @@ module Github
99
class Source < Nanoc::DataSource
1010
identifier :github
1111

12-
def up
13-
Octokit.middleware = Faraday::RackBuilder.new do |builder|
14-
builder.use Faraday::HttpCache, serializer: Marshal, shared_cache: false
15-
builder.use Octokit::Response::RaiseError
16-
builder.adapter Faraday.default_adapter
17-
end
18-
end
19-
2012
def items
2113
@items ||= begin
2214
repository_items.map do |item|

test/fixtures/test_frontmatter.yml

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/fixtures/test_item.yml

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)