Testing Kentico 7 Cache Settings on an Offline Site

Dan Gowans asked on September 25, 2014 16:15

I have a website that is not yet live (status is "off-line" in the Site Manager). I have configured some caching settings are would like to test their effectiveness.

Because the website is offline, I can only browse it in "Preview Mode". According to the Developer's Guide ( http://devnet.kentico.com/docs/7_0rc/devguide/index.html?caching_options.htm ), caching is not used in Preview Mode.

Is there a way to browse the website like it is live, taking advantage of the caching options, without having to make the site live?

I'm running Kentico v7.0.14.

Correct Answer

Dan Gowans answered on September 25, 2014 21:37

I ended up setting the root page to require authentication. All subpages inherit the authentication setting. Once set, I made the site live.

So now, rather than seeing an offline message, unauthenticated users see a login screen. Once logged in, I can browse the site using the live settings, which includes caching.

When the site's ready for prime time, I can just remove the authentication requirement.

1 votesVote for this answer Unmark Correct answer

Recent Answers


Brenden Kehren answered on September 25, 2014 17:42

You can always setup a testing URL and make it live there and test. What part of the caching did you want to test specifically? The docs are pretty good in explaining what each property does and how it works.

1 votesVote for this answer Mark as a Correct answer

Dan Gowans answered on September 25, 2014 18:57

The site is already on a test URL that is accessible from the outside. If another site was not already live on the same Kentico install, I'd set some IP filters through IIS and turn the site to live.

Mostly I want to decrease page load times. Some pages take 3-4 seconds to load locally. I'd like everything to be under 2 seconds, closer to 1 second if possible. I'm guessing this is partly caused by the additional Javascript files added to Preview Mode, and the lack of caching.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.