<?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>Cache Archives - Blog IT</title>
	<atom:link href="https://blogit.create.pt/category/development/cache/feed/" rel="self" type="application/rss+xml" />
	<link>https://blogit.create.pt/category/development/cache/</link>
	<description>Create IT blogger community</description>
	<lastBuildDate>Thu, 10 Jan 2019 14:15:30 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.1</generator>
	<item>
		<title>Force Image Cache Refresh Programmatically</title>
		<link>https://blogit.create.pt/marionunes/2017/11/23/force-image-cache-refresh-programmatically/</link>
					<comments>https://blogit.create.pt/marionunes/2017/11/23/force-image-cache-refresh-programmatically/#comments</comments>
		
		<dc:creator><![CDATA[Mário Nunes]]></dc:creator>
		<pubDate>Thu, 23 Nov 2017 18:15:22 +0000</pubDate>
				<category><![CDATA[Umbraco]]></category>
		<category><![CDATA[Cache]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[.NET]]></category>
		<guid isPermaLink="false">http://blogit.create.pt/marionunes/?p=274</guid>

					<description><![CDATA[<p>The best solution I found, to force the browser cache to refresh for an image, is to modify the image url in the html. Example: I have an image with this url: &#8220;/images/mario-profile-photo.jpeg&#8221;. Change the url to: &#8220;/images/mario-profile-photo.jpeg?updated={DateTime.Now.Ticks}&#8220;. So, I lied, sorry! This will make the browser request the image again, because the url is [&#8230;]</p>
<p>The post <a href="https://blogit.create.pt/marionunes/2017/11/23/force-image-cache-refresh-programmatically/">Force Image Cache Refresh Programmatically</a> appeared first on <a href="https://blogit.create.pt">Blog IT</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>The best solution I found, to force the browser cache to refresh for an image, is to modify the image url in the html.</p>
<p>Example:<br />
I have an image with this url: &#8220;/images/mario-profile-photo.jpeg&#8221;.<br />
Change the url to: &#8220;/images/mario-profile-photo.jpeg<strong>?updated={DateTime.Now.Ticks}</strong>&#8220;.</p>
<p><strong>So, I lied, sorry! This will make the browser request the image again, because the url is different. It doesn&#8217;t really refresh the cache.</strong></p>
<p>Using DateTime.Now.Ticks will force the refresh every time the page loads, so <strong>I don&#8217;t recommend using it</strong>.</p>
<p><u>If you have the time of when the photo was last updated, use that instead! Something like: {<strong>Photo.UpdateDate.Ticks</strong>}<br />
This way, you will only request a new image when it is different from the one you already have in cache.<u></u></u></p>
<blockquote><p>Note: the &#8220;?updated=&#8221; property is just a name, you can use whatever you want. The important thing is to modify the url.</p></blockquote>
<p>For Umbraco developers: When saving an image, do not forget to set it&#8217;s UpdateDate! Umbraco doesn&#8217;t update that property automatically.</p>
<p>Hope this helps,<br />
Thanks for reading!<br />
Mário</p>
<p>The post <a href="https://blogit.create.pt/marionunes/2017/11/23/force-image-cache-refresh-programmatically/">Force Image Cache Refresh Programmatically</a> appeared first on <a href="https://blogit.create.pt">Blog IT</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blogit.create.pt/marionunes/2017/11/23/force-image-cache-refresh-programmatically/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Flushing the BLOB cache in SharePoint 2010</title>
		<link>https://blogit.create.pt/andrevala/2010/12/08/flushing-the-blob-cache-in-sharepoint-2010/</link>
					<comments>https://blogit.create.pt/andrevala/2010/12/08/flushing-the-blob-cache-in-sharepoint-2010/#respond</comments>
		
		<dc:creator><![CDATA[André Vala]]></dc:creator>
		<pubDate>Wed, 08 Dec 2010 10:18:47 +0000</pubDate>
				<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Cache]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[SharePoint]]></category>
		<guid isPermaLink="false">http://blogcreate.azurewebsites.net/andrevala/?p=341</guid>

					<description><![CDATA[<p>If you’re developing a SharePoint-based public Internet portal, you’re probably using the BLOB (Binary Large Object) cache. This caching mechanism stores a copy of the binary files (images, documents and such) in the file system of each front-end web server. This can save a lot of database accesses, thus improving the performance of the web [&#8230;]</p>
<p>The post <a href="https://blogit.create.pt/andrevala/2010/12/08/flushing-the-blob-cache-in-sharepoint-2010/">Flushing the BLOB cache in SharePoint 2010</a> appeared first on <a href="https://blogit.create.pt">Blog IT</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>If you’re developing a SharePoint-based public Internet portal, you’re probably using the <strong>BLOB (Binary Large Object) cache</strong>. This caching mechanism stores a copy of the binary files (images, documents and such) in the file system of each front-end web server. This can save a lot of database accesses, thus improving the performance of the web site.</p>
<p>As for any caching mechanism, it is possible that the BLOB cache becomes out-of-sync with the content database, storing an old version of a file that has been updated in the content database.</p>
<p>The quickest way to re-sync the BLOB cache is to flush it and let SharePoint repopulate it with the current version of the binary files. Flushing the BLOB cache can only be done through a PowerShell script (since there is no place for it on the SharePoint UI):</p>
<pre>$webApp = Get-SPWebApplication &quot;&lt;WebApplicationURL&gt;&quot;
[Microsoft.SharePoint.Publishing.PublishingCache]::FlushBlobCache($webApp)
Write-Host &quot;Flushed the BLOB cache for:&quot; $webApp</pre>
<p>In which <code>&lt;WebApplicationURL&gt;</code> is the URL address of the web application for which you want to flush the BLOB cache.</p>
<p>You can find additional information in: <a href="http://technet.microsoft.com/en-us/library/gg277249.aspx">http://technet.microsoft.com/en-us/library/gg277249.aspx</a></p>
<p>The post <a href="https://blogit.create.pt/andrevala/2010/12/08/flushing-the-blob-cache-in-sharepoint-2010/">Flushing the BLOB cache in SharePoint 2010</a> appeared first on <a href="https://blogit.create.pt">Blog IT</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blogit.create.pt/andrevala/2010/12/08/flushing-the-blob-cache-in-sharepoint-2010/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
