Points to ponder:
- how the site was created
- when you enabled the publishing infrastructrue
- when the site or page was created before or after enabling publishing infrastructrue
Have an existing Site based on a template other then Publishing Template and you want to enable Ouput Caching and Page Caching .
Even if you go ahead and enable the Output caching at the site/site collection level after enabling publishing infrastructure etc. The Caching will not work for the existing pages.
Check If Output Caching is working or not?
Enable debug cache information in the cache profile, a comment will be left at the end of the HTML markup of the web page indicating if output caching is enabled.
This option is really for debugging purposes, and it is not required to enable output caching.
It tells you what profile the page is using to cache the content, and the timestamp of the cached version of the page.
You should be able to see the (IE > view Source > at the bottom)
<!-- Rendered using cache profile:Public Internet at: 2006-11-03T14:38:59 -->
at the bottom of the page for the site you created under site collection using the Publishing template "Publishing Site" or Pages created after enabling Publishing Infrastructure.
So, even if i go ahead and enable the Output caching at the site/site collection level after enabling publishing infrastructure etc. The Caching will not work for the existing pages and they won't have something like "<!-- Rendered using cache profile:Public Internet at: 2006-11-03T14:38:59 -->" at the bottom. Although, this will work for newly added pages after enabling Publishing Infrastructure.
No comments:
Post a Comment