powered by
This creates a file cache which is to be used by sass for caching generated .css files.
sass_file_cache(dir, max_size = 40 * 1024^2, max_age = Inf)
A FileCache object.
The directory in which to store the cached files.
The maximum size of the cache, in bytes. If the cache grows past this size, the least-recently-used objects will be removed until it fits within this size.
The maximum age of objects in the cache, in seconds. The default is one week.
sass_cache_get(), sass_cache_context_dir(), FileCache
sass_cache_get()
sass_cache_context_dir()
if (FALSE) { # Create a cache with the default settings cache <- sass_file_cache(sass_cache_context_dir()) # Clear the cache cache$reset() }
Run the code above in your browser using DataLab