http://kodi.wiki/view/HOW-TO%3AModify_the_video_cache
Pay particular attention the the Kodi Krypton changes at section 3.