Caching incorrect

On my website I have a main controller with an index action and view. I
have enabled caching for all pages inside of the main controller. When
you look in the public directory for the app, there is a main folder,
and inside of it we have the cached html pages for all the views in the
main controller, all except for index.html. For some reason it is being
placed in the parent directory(public). Is this a default and is there
some way to override it? I dont want my database being hit up every
time someone goes to main/index.