Added cache config, correct resizing