Use the new clear_cache method

Instead of assigning `@cache = {}`, clear the cache using `clear_cache`
This commit is contained in:
Nicholas Burlett 2015-03-18 22:30:31 -07:00
parent adce349d7a
commit 15ebf929e1
1 changed files with 2 additions and 2 deletions

View File

@ -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