Skip to content
This repository has been archived by the owner on Nov 8, 2018. It is now read-only.

Asset Cache does not work #5

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

allenwei
Copy link

Asset::Cache.cache alway return empty {}.

@cache ||= YAML.load_file(cache_path) rescue {}

if it can not load yml from cache path, this method alway return {}, rather than @cache variable

so it's a easy fix

@cache ||= (YAML.load_file(cache_path) rescue {})

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant