jekyll-include-cache 0.2.2 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/jekyll-include-cache/cache.rb +1 -1
- data/lib/jekyll-include-cache/version.rb +1 -1
- data/lib/jekyll-include-cache.rb +9 -5
- metadata +10 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7c63976963b27f43ce835a52680dae96b1e254f65de077c0f729a9b861e18b19
|
|
4
|
+
data.tar.gz: 7a9d4542f98a9ab7db67c4f5ffdcde002732602938c575cc79e79fed665c5a57
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 965398e6c448002f0e3c864d596d7c977583c8af5987919dac1e5e7e1835cfb96f68911763ba120215b851d34cf06686c44544e1ad421f2d7fd35a204fb91e0d
|
|
7
|
+
data.tar.gz: 35e8de3e5460272a585d85246a95a817e50b2d4df871a7f3e7dc9aedafe7f8511174f68124e398f88ee817dd84f0a1ddc6e87597b0c9a2d86d1b0526a6875ff7
|
data/lib/jekyll-include-cache.rb
CHANGED
|
@@ -7,16 +7,20 @@ module JekyllIncludeCache
|
|
|
7
7
|
autoload :Cache, "jekyll-include-cache/cache"
|
|
8
8
|
|
|
9
9
|
class << self
|
|
10
|
+
# An in-memory cache of rendered includes.
|
|
11
|
+
#
|
|
12
|
+
# This deliberately doesn't use Jekyll::Cache: the cache is cleared on
|
|
13
|
+
# every render, so persisting entries to disk (Marshal + SHA2 per write)
|
|
14
|
+
# only costs time and never produces a hit on the next build.
|
|
10
15
|
def cache
|
|
11
|
-
@cache ||=
|
|
12
|
-
Jekyll::Cache.new(self.class.name)
|
|
13
|
-
else
|
|
14
|
-
JekyllIncludeCache::Cache.new
|
|
15
|
-
end
|
|
16
|
+
@cache ||= JekyllIncludeCache::Cache.new
|
|
16
17
|
end
|
|
17
18
|
|
|
18
19
|
def reset
|
|
19
20
|
JekyllIncludeCache.cache.clear
|
|
21
|
+
# Keys are derived from object ids, which are only meaningful within a
|
|
22
|
+
# single build, so don't let the memo grow across `jekyll serve` rebuilds.
|
|
23
|
+
JekyllIncludeCache::Tag.digest_cache.clear
|
|
20
24
|
end
|
|
21
25
|
end
|
|
22
26
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jekyll-include-cache
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ben Balter
|
|
@@ -155,6 +155,8 @@ dependencies:
|
|
|
155
155
|
- - ">="
|
|
156
156
|
- !ruby/object:Gem::Version
|
|
157
157
|
version: '0'
|
|
158
|
+
description: Jekyll plugin to cache Liquid includes (include_cached) and speed up
|
|
159
|
+
slow site builds. Supported on GitHub Pages.
|
|
158
160
|
email:
|
|
159
161
|
- ben.balter@github.com
|
|
160
162
|
executables: []
|
|
@@ -168,7 +170,11 @@ files:
|
|
|
168
170
|
homepage: https://github.com/benbalter/jekyll-include-cache
|
|
169
171
|
licenses:
|
|
170
172
|
- MIT
|
|
171
|
-
metadata:
|
|
173
|
+
metadata:
|
|
174
|
+
homepage_uri: https://github.com/benbalter/jekyll-include-cache
|
|
175
|
+
source_code_uri: https://github.com/benbalter/jekyll-include-cache
|
|
176
|
+
bug_tracker_uri: https://github.com/benbalter/jekyll-include-cache/issues
|
|
177
|
+
changelog_uri: https://github.com/benbalter/jekyll-include-cache/releases
|
|
172
178
|
rdoc_options: []
|
|
173
179
|
require_paths:
|
|
174
180
|
- lib
|
|
@@ -176,14 +182,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
176
182
|
requirements:
|
|
177
183
|
- - ">="
|
|
178
184
|
- !ruby/object:Gem::Version
|
|
179
|
-
version: '0'
|
|
185
|
+
version: '3.0'
|
|
180
186
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
181
187
|
requirements:
|
|
182
188
|
- - ">="
|
|
183
189
|
- !ruby/object:Gem::Version
|
|
184
190
|
version: '0'
|
|
185
191
|
requirements: []
|
|
186
|
-
rubygems_version:
|
|
192
|
+
rubygems_version: 3.6.9
|
|
187
193
|
specification_version: 4
|
|
188
194
|
summary: A Jekyll plugin to cache the rendering of Liquid includes
|
|
189
195
|
test_files: []
|