In order to turn on layout caching, the following should be done:
Ensure that the following web.config setting is set to false.
Note that layout caching is disabled by default:
<setting name="DisableBrowserCaching" value="true">
Add “OutputCache” page directive with appropriate parameters to the layout (ASPX page) that you would like to cache.