Hello SelArom,
We learnt from our US office that you called them about a problem with your site performance. We will try to give you some tips here, but let me first answer your questions from your previous post.
Invalidating the cache without using the publish button. like I said I have some controls that I change by uploading and overwriting, bypassing edit and publish of the page.
The cache is indeed invalidated when you publish new page. Having that said, if you modify a control which is used in some of your pages but is modified outside Sitefinity administration, then the changes will not be reflected until the cache is refreshed. You could clear the cache with this code:
| Telerik.DataAccess.CacheDependencyHandler.Current.Notify(typeof(Telerik.Cms.ICmsPage)); |
It should be run in the context of the application. This way, whenever you change a control, you could clear the cache. There are more approaches, as mentioned in the provided KB Article - Using Substitution control and the standard ASP.NET caching, you could cache everything on the page except your control.
Do the separate cache methods cache a separate instance of the page for each individual visitor to the site, or does it instead cache one copy from which ALL visitors receive the pages? If it's the latter, how do you handle if pages render differently for differnt types of users or at different times of the day?
It caches one copy of the page and serves it to all users. If you want to show dynamic data to every single user, then you should not cache the page, or you should use ASP.NET caching with Substitution control.
does the Database caching mode require a separate database that needs to be configured or does the sitefinity already have a table for this?
It is not necessary to specify an additional database when using
InDatabase cache and cacheDependancy, Sitefinity could use its own database. Declaring additional database in an option, but not a must.
We have inspected your web site and here is what we noticed:
1. The first time when we open the web site, the home page is rendered for about 3 seconds. The rest of time (nearly 50 seconds) is taken for loading the resource files. We noticed that there were 5 images, each is about 300K which results 1,5MB. This is making your website heavy. The total size of the home page on first load is 3,3MB. Please review the attached screenshots (initial1 and initial2 images).
2. On the second load, the downloaded amount of data from the home page went down to 350K, but there are still uncached CSS files and Javascripts slowing down the page load. We suggest you installing HttpWatch addon to Internet Explorer and check these scripts and style definitions. The page itself is rendered for again 3 or 4 seconds.
You should probably consider optimizing the images and scripts used in your page.
Kind regards,
Georgi
the Telerik team
Check out
Telerik Trainer, the state of the art learning tool for Telerik products.