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
|
||||
|
||||
# Initialize cache to an empty hash
|
||||
@cache = {}
|
||||
clear_cache
|
||||
end
|
||||
|
||||
# Checks if a renderable object needs to be regenerated
|
||||
|
@ -56,7 +56,7 @@ module Jekyll
|
|||
# Returns nothing
|
||||
def clear
|
||||
@metadata = {}
|
||||
@cache = {}
|
||||
clear_cache
|
||||
end
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue