public function buildCache($language)
{
// kill existing caches so they can be re-generated
$this->cache->deleteItems(array('keys_' . $language, 'navigation_' . $language));
$keys = $this->getKeys($language);
$navigation = $this->getNavigation($language);
// build file with navigation structure to feed into editor
$filesystem = new Filesystem();
$cachePath = FRONTEND_CACHE_PATH . '/Navigation/';
$filesystem->dumpFile($cachePath . 'editor_link_list_' . $language . '.js', $this->dumpEditorLinkList($navigation, $keys, $language));
}