File tree Expand file tree Collapse file tree 4 files changed +27
-0
lines changed Expand file tree Collapse file tree 4 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ gem 'bundler', '1.16.1'
4
4
gem 'jekyll'
5
5
gem 'rack-jekyll'
6
6
gem 'rake'
7
+ gem 'rack-cache'
8
+ gem 'dalli'
9
+ gem 'kgio'
10
+ gem "memcachier"
7
11
gem 'jekyll-theme-minimal'
8
12
group :jekyll_plugins do
9
13
gem 'jekyll-feed'
Original file line number Diff line number Diff line change 5
5
public_suffix (>= 2.0.2 , < 4.0 )
6
6
colorator (1.1.0 )
7
7
concurrent-ruby (1.0.5 )
8
+ dalli (2.7.8 )
8
9
em-websocket (0.5.1 )
9
10
eventmachine (>= 0.12.9 )
10
11
http_parser.rb (~> 0.6.0 )
49
50
jekyll-seo-tag (~> 2.0 )
50
51
jekyll-watch (2.0.0 )
51
52
listen (~> 3.0 )
53
+ kgio (2.11.2 )
52
54
kramdown (1.16.2 )
53
55
liquid (4.0.0 )
54
56
listen (3.1.5 )
55
57
rb-fsevent (~> 0.9 , >= 0.9.4 )
56
58
rb-inotify (~> 0.9 , >= 0.9.7 )
57
59
ruby_dep (~> 1.2 )
60
+ memcachier (0.0.2 )
58
61
mercenary (0.3.6 )
59
62
pathutil (0.16.1 )
60
63
forwardable-extended (~> 2.6 )
61
64
posix-spawn (0.3.13 )
62
65
public_suffix (3.0.2 )
63
66
rack (1.6.10 )
67
+ rack-cache (1.7.2 )
68
+ rack (>= 0.4 )
64
69
rack-jekyll (0.5.0 )
65
70
jekyll (>= 1.3 )
66
71
listen (>= 1.3 )
@@ -83,6 +88,7 @@ PLATFORMS
83
88
84
89
DEPENDENCIES
85
90
bundler (= 1.16.1 )
91
+ dalli
86
92
jekyll
87
93
jekyll-feed
88
94
jekyll-include-cache
@@ -92,6 +98,9 @@ DEPENDENCIES
92
98
jekyll-seo-tag
93
99
jekyll-sitemap
94
100
jekyll-theme-minimal
101
+ kgio
102
+ memcachier
103
+ rack-cache
95
104
rack-jekyll
96
105
rake
97
106
Original file line number Diff line number Diff line change
1
+ config . cache_store = :dalli_store
Original file line number Diff line number Diff line change
1
+ client = Dalli ::Client . new ( ( ENV [ "MEMCACHIER_SERVERS" ] || "" ) . split ( "," ) ,
2
+ :username => ENV [ "MEMCACHIER_USERNAME" ] ,
3
+ :password => ENV [ "MEMCACHIER_PASSWORD" ] ,
4
+ :failover => true ,
5
+ :socket_timeout => 1.5 ,
6
+ :socket_failure_delay => 0.2 ,
7
+ :value_max_bytes => 10485760 )
8
+ config . action_dispatch . rack_cache = {
9
+ :metastore => client ,
10
+ :entitystore => client
11
+ }
12
+ config . static_cache_control = "public, max-age=2592000"
13
+ config . action_controller . perform_caching = true
You can’t perform that action at this time.
0 commit comments