Added cache clearing when refreshing
Added some logging