Fixes #5109. Checking if simplecache dir needs to be created before trying to save cached views.