<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>NevYn.se</title>
	<atom:link href="http://www.nevyn.se/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nevyn.se</link>
	<description>Coding etc</description>
	<lastBuildDate>Mon, 14 Feb 2011 21:14:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Notes to self regarding ASP.NET MVC3 Performance</title>
		<link>http://www.nevyn.se/2011/02/14/notes-to-self-regarding-asp-net-mvc3-performance/</link>
		<comments>http://www.nevyn.se/2011/02/14/notes-to-self-regarding-asp-net-mvc3-performance/#comments</comments>
		<pubDate>Mon, 14 Feb 2011 21:14:02 +0000</pubDate>
		<dc:creator>Micke</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.nevyn.se/?p=31</guid>
		<description><![CDATA[Disable unused ViewEngines, Application_Start() in global.asax: ViewEngines.Engines.Clear(); ViewEngines.Engines.Add(new RazorViewEngine()); Never send null to a strongly typed view, instead send an empty model: public ActionResult Insert(){ return View(new SomeModel()); } Cache actions that don&#8217;t need live data. Cache for 10 seconds, on server(same cached content for all users): [OutputCache(Duration=10, VaryByParam="none")] public ActionResult SemiStaticPage() { return View(); <a href='http://www.nevyn.se/2011/02/14/notes-to-self-regarding-asp-net-mvc3-performance/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><strong>Disable unused ViewEngines, Application_Start() in global.asax:</strong></p>
<pre class="brush:csharp">ViewEngines.Engines.Clear();
ViewEngines.Engines.Add(new RazorViewEngine());</pre>
<p><strong>Never send null to a strongly typed view, instead send an empty model:</strong></p>
<pre class="brush:csharp">public ActionResult Insert(){
    return View(new SomeModel());
}</pre>
<p><strong>Cache actions that don&#8217;t need live data.</strong></p>
<p>Cache for 10 seconds, on server(same cached content for all users):</p>
<pre class="brush:csharp">[OutputCache(Duration=10, VaryByParam="none")]
public ActionResult SemiStaticPage()
{
    return View();
}</pre>
<p>Cache for 30 seconds, on client(individually cached content), tell proxys not to store a copy:</p>
<pre class="brush:csharp"> [OutputCache(Duration=30, VaryByParam="none", Location=OutputCacheLocation.Client, NoStore=true)]
public ActionResult SemiStaticPage()
{
    return View();
}</pre>
<p>Cache for 1hour, on server, one cached entry per passed parameter value:</p>
<pre class="brush:csharp">[OutputCache(Duration=3600, VaryByParam="Id")]
public ActionResult SemiStaticPage(Id)
{
    return View();
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.nevyn.se/2011/02/14/notes-to-self-regarding-asp-net-mvc3-performance/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Testing blog client for WP7</title>
		<link>http://www.nevyn.se/2010/12/13/testing-blog-client-for-wp7/</link>
		<comments>http://www.nevyn.se/2010/12/13/testing-blog-client-for-wp7/#comments</comments>
		<pubDate>Mon, 13 Dec 2010 09:06:11 +0000</pubDate>
		<dc:creator>Micke</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.nevyn.se/2010/12/13/testing-blog-client-for-wp7/</guid>
		<description><![CDATA[Seems to work :)]]></description>
			<content:encoded><![CDATA[<p>Seems to work :)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nevyn.se/2010/12/13/testing-blog-client-for-wp7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Testing SyntaxHighlighter</title>
		<link>http://www.nevyn.se/2010/12/12/testing-syntaxhighlighter/</link>
		<comments>http://www.nevyn.se/2010/12/12/testing-syntaxhighlighter/#comments</comments>
		<pubDate>Sun, 12 Dec 2010 12:45:44 +0000</pubDate>
		<dc:creator>Micke</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.nevyn.se/2010/12/12/testing-syntaxhighlighter/</guid>
		<description><![CDATA[namespace NevYn.se.Controllers { [HandleError] public class HomeController : Controller { public ActionResult Index() { ViewData[&#34;Message&#34;] = &#34;Welcome to ASP.NET MVC!&#34;; return View(); } public ActionResult About() { return View(); } } }]]></description>
			<content:encoded><![CDATA[<pre class="brush: csharp;">namespace NevYn.se.Controllers
{
    [HandleError]
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            ViewData[&quot;Message&quot;] = &quot;Welcome to ASP.NET MVC!&quot;;

            return View();
        }

        public ActionResult About()
        {
            return View();
        }
    }
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.nevyn.se/2010/12/12/testing-syntaxhighlighter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

