fixed a bug in the view render when caching is turned on
Merge pull request #22 from foysalit/master

fixed a bug in the view render when caching is turned on