jekyll-include-cache 0.2.2 → 0.3.0
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 +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d8404e6aa18c18acf66c693668b8c4a6f8a205c19f5d601e08902c586dd9c121
|
|
4
|
+
data.tar.gz: 12c6593f322b80f18ac612c410bf6f371aca711b6441e6aeb6495cf5a9c36e0e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 521d68c45d193bb31daf675daa9d283a580058801e430b598fed681ecd179ebb6fcfc01b338a6958986d35f1b11e680357b22f724a96b15e721d552a61c37472
|
|
7
|
+
data.tar.gz: 6e7586b6916faef3ef5d14e418d40ef4d60783ec80f57f05518214eafb8d172ba35b5401430ba16e1386c2ee47d1d7569418d7323a91b25a3230db9da4fd33db
|
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.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ben Balter
|
|
@@ -176,14 +176,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
176
176
|
requirements:
|
|
177
177
|
- - ">="
|
|
178
178
|
- !ruby/object:Gem::Version
|
|
179
|
-
version: '0'
|
|
179
|
+
version: '3.0'
|
|
180
180
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
181
181
|
requirements:
|
|
182
182
|
- - ">="
|
|
183
183
|
- !ruby/object:Gem::Version
|
|
184
184
|
version: '0'
|
|
185
185
|
requirements: []
|
|
186
|
-
rubygems_version:
|
|
186
|
+
rubygems_version: 3.6.9
|
|
187
187
|
specification_version: 4
|
|
188
188
|
summary: A Jekyll plugin to cache the rendering of Liquid includes
|
|
189
189
|
test_files: []
|