Fixed bug with legacy posts corrupting the list of files on cache