mirror of
https://github.com/jekyll/jekyll.git
synced 2026-01-29 16:58:01 -05:00
Use the new clear_cache method
Instead of assigning `@cache = {}`, clear the cache using `clear_cache`
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user