title: How to comple Sass with scssphp compiler cache
body: <p>Less PHP (<a href="http://leafo.net/lessphp/docs/" rel="nofollow">http://leafo.net/lessphp/docs/</a>) has a great method </p>
  
  <pre><code>function autoCompileLess($inputFile, $outputFile) {
    // load the cache
    $cacheFile = $inputFile.".cache";
  
    if (file_exists($cacheFile)) {
      $cache = unserialize(file_get_contents($cacheFile));
    } else {
      $cache = $inputFile;
    }
  
    $less = new lessc;
    $newCache = $less-&gt;cachedCompile($cache);
  
    if (!is_array($cache) || $newCache["updated"] &gt; $cache["updated"]) {
      file_put_contents($cacheFile, serialize($newCache));
      file_put_contents($outputFile, $newCache['compiled']);
    }
  }
  
  autoCompileLess('myfile.less', 'myfile.css');
  </code></pre>
  
  <p>Is there any option to do same thing with <a href="http://leafo.net/scssphp/" rel="nofollow">http://leafo.net/scssphp/</a>, for SASS? I can't find alternative to <code>cachedCompile()</code> with scssphp.</p>