saltstack/salt — pull request #9916 by terminalmage (2014-01-23 22:06:54+00:00)
Title: Cache gitfs environments (2014.1 branch)

This commit improves performance by not repeatedly looking up the
list of available environments whenever they are needed, and instead
writing them to a cache file whenever the fileserver is updated (and
changes are found). envs() will prefer the cache if it is available.