private function write() { print "Writing cache to {$this->cachePath}\n"; \file_put_contents($this->cachePath, JSON::encode(array('files' => $this->files), true, true)); }