Use the new clear_cache method
Instead of assigning `@cache = {}`, clear the cache using `clear_cache`
This commit is contained in:
parent
adce349d7a
commit
15ebf929e1
|
@ -9,7 +9,7 @@ module Jekyll
|
||||||
read_metadata
|
read_metadata
|
||||||
|
|
||||||
# Initialize cache to an empty hash
|
# Initialize cache to an empty hash
|
||||||
@cache = {}
|
clear_cache
|
||||||
end
|
end
|
||||||
|
|
||||||
# Checks if a renderable object needs to be regenerated
|
# Checks if a renderable object needs to be regenerated
|
||||||
|
@ -56,7 +56,7 @@ module Jekyll
|
||||||
# Returns nothing
|
# Returns nothing
|
||||||
def clear
|
def clear
|
||||||
@metadata = {}
|
@metadata = {}
|
||||||
@cache = {}
|
clear_cache
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue