示例#1
0
 /**
  * {@inheritdoc}
  */
 public function write($key, $content)
 {
     $this->filesystem->put($key, $content);
     // Compile cached file into bytecode cache
     if (function_exists('opcache_invalidate')) {
         opcache_invalidate($key, true);
     } elseif (function_exists('apc_compile_file')) {
         apc_compile_file($key);
     }
 }