<?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 - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/cache/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Wed, 14 Oct 2020 16:16:08 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How to clear cache on any distribution Linux?</title>
		<link>https://www.osradar.com/clear-cache-any-linux/</link>
					<comments>https://www.osradar.com/clear-cache-any-linux/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Thu, 15 Oct 2020 02:15:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[focal]]></category>
		<category><![CDATA[Focal Fossa]]></category>
		<category><![CDATA[trick]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=24529</guid>

					<description><![CDATA[<p>Hello, friends. In this very short post, we will show you how to clear the cache in Linux. This tutorial, although it will be done in Ubuntu, will work in any distribution that has systemd. Linux is an operating system that manages memory very well and that&#8217;s why the cache exists. Every time we open [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/clear-cache-any-linux/">How to clear cache on any distribution Linux?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Hello, friends. In this very short post,<strong> we will show you how to clear the cache in Linux</strong>. This tutorial, although it will be done in <a href="https://www.osradar.com/tag/ubuntu" target="_blank" rel="noreferrer noopener">Ubuntu</a>, will work in any distribution that has systemd.</p>



<p>Linux is an operating system that manages memory very well and that&#8217;s why the cache exists. Every time we open a file or directory they are temporarily stored in the main memory to make them accessible and speed up the system. However, there are situations in which it is required to clean the cache to free more space in it.</p>



<p>So it can be done from the terminal without any problem. Let&#8217;s see.</p>



<h2>Clear cache on any Linux distribution</h2>



<p>The first thing to know is that in Linux there are several types of cache.</p>



<p>On the one hand, there is the <strong>PageCache</strong> that refers to files and programs that are stored in RAM and do not need to be reloaded from the hard disk.</p>



<p>On the other hand, there is <strong>Dentry and inode</strong> cache which are the attributes of these files.</p>



<p>So let&#8217;s get to the point.</p>



<p>First, execute the <code>free</code> command with the <code>-h</code> argument so that you notice how the RAM is being used.</p>



<pre class="wp-block-preformatted">free -h</pre>



<p>In my case the screen output gives the following data:</p>



<pre class="wp-block-preformatted">total used free shared buff/cache available
Mem: 3,7G 2,2G 145M 242M 1,3G 934M
Swap: 964M 11M 953M</pre>



<p>As you can see my computer has little RAM and the cache takes a good part.</p>



<p>If you want to clean it up, just execute the following command:</p>



<pre class="wp-block-preformatted">sudo sysctl vm.drop_caches=3</pre>



<p>This command will remove all the cache, but you can also just remove the PageCache, by running</p>



<pre class="wp-block-preformatted">sudo sysctl vm.drop_caches=1</pre>



<p>Or just the inodes:</p>



<pre class="wp-block-preformatted">sudo sysctl vm.drop_caches=2</pre>



<p>In any case, if you execute the free command again you will be able to notice the results.</p>



<pre class="wp-block-preformatted">free -h</pre>



<p>So, congratulations, you completed the tutorial and you know how to clear cache on Linux.</p>



<h2>Conclusion</h2>



<p>Generally, you will probably never feel the need to go through this process, but it is good to know so that you can use it when necessary.</p>



<p>Finally, remember that cleaning the cache can slow down the system at first, but it can be used in specific cases.</p>



<p>So, share this post and join <a href="https://t.me/osradar" target="_blank" rel="noreferrer noopener">our Telegram channel</a> and our <a href="https://www.facebook.com/osradar" target="_blank" rel="noreferrer noopener">Facebook page</a>. Also, buy us a coffee 😉</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/clear-cache-any-linux/">How to clear cache on any distribution Linux?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/clear-cache-any-linux/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Disable Firefox Web Browser Disk Cache When Using Squid Proxy Server</title>
		<link>https://www.osradar.com/disable-firefox-web-browser-disk-cache-when-using-squid-proxy-server/</link>
					<comments>https://www.osradar.com/disable-firefox-web-browser-disk-cache-when-using-squid-proxy-server/#respond</comments>
		
		<dc:creator><![CDATA[Chris]]></dc:creator>
		<pubDate>Sat, 07 Dec 2019 02:59:44 +0000</pubDate>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[squid]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=16344</guid>

					<description><![CDATA[<p>I use a Firefox-based web browser which connects to a Squid proxy server. The proxy server is part of a much more complicated secure network. One of the many benefits of using Squid, in addition to the obvious security benefits, is content caching. The cache increases network performance for fetching clients and lowers internet bandwidth. [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/disable-firefox-web-browser-disk-cache-when-using-squid-proxy-server/">Disable Firefox Web Browser Disk Cache When Using Squid Proxy Server</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>I use a Firefox-based web browser which connects to a Squid proxy server.  The proxy server is part of a much more complicated secure network.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="576" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/12/disk-cache-disable_0-1024x576.jpg" alt="" class="wp-image-16350" srcset="https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_0-1024x576.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_0-300x169.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_0-768x432.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_0-696x392.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_0-1068x601.jpg 1068w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_0-747x420.jpg 747w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_0.jpg 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>One of the many benefits of using Squid, in addition to the obvious security benefits, is content caching. The cache increases network performance for fetching clients and lowers internet bandwidth.</p>



<p>Firefox web browser
also includes its own built-in cache. Two of them, actually! It has a
memory cache and a disk cache. You can view the contents of the cache
by entering the following into your navigation bar:</p>



<p><strong><code>about:cache</code></strong></p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="576" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/12/disk-cache-disable_1-1024x576.png" alt="" class="wp-image-16345" srcset="https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_1-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_1-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_1-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_1-1536x864.png 1536w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_1-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_1-1068x601.png 1068w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_1-747x420.png 747w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_1.png 1919w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>From here you can also update the cache or view the details of a specific cached item.</p>



<p>The Firefox web
browser cache is designed to increase performance. However, when you
have caching being performed by Squid, then using the web browser
cache is effectively a duplication of services. When the Firefox disk
cache and Squid are both actively caching I often found that
connections would hang, become unstable or even become
non-responsive. This was the result of the Firefox disk cache
conflicting with the Squid cache &#8211; two caches trying to do the same
task.</p>



<p>While choosing one
cache over another might not technically be a &#8216;better&#8217; option, I have
found it&#8217;s better to leave the task of caching to Squid as it is a
dedicated server designated for one specific role. This frees up
Firefox resources to concentrate on rendering content rather than
juggling finite resources for multiple tasks inside the browser.</p>



<p>There is also an
added security benefit to disabling the Firefox disk cache. When
enabled, malicious web content can reside inside the cache. Where
memory cache is non-persistent and cleared on Firefox close, the disk
cache is persistent and if there is malicious content present, it
will get reloaded every time Firefox is booted or until you clear the
cache entirely.</p>



<p>It&#8217;s best to leave
the Firefox memory cache enabled to maintain Firefox web browser
performance, as the memory cache poses less threat of cache conflict
with Squid to that of the disk cache. To disable the disk cache enter
the following into your navigation bar:</p>



<p><strong><code>about:config</code></strong></p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="576" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/12/disk-cache-disable_2-1024x576.png" alt="" class="wp-image-16346" srcset="https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_2-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_2-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_2-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_2-1536x864.png 1536w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_2-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_2-1068x601.png 1068w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_2-747x420.png 747w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_2.png 1919w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Press <strong>ENTER</strong> to confirm the warning dialog. Now, search for the configuration string:</p>



<p><strong><code>browser.cache.disk.enable</code></strong></p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="576" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/12/disk-cache-disable_3-1024x576.png" alt="" class="wp-image-16347" srcset="https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_3-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_3-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_3-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_3-1536x864.png 1536w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_3-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_3-1068x601.png 1068w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_3-747x420.png 747w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_3.png 1919w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Set the value to &#8220;<strong>false</strong>&#8220;.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="576" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/12/disk-cache-disable_4-1024x576.png" alt="" class="wp-image-16348" srcset="https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_4-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_4-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_4-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_4-1536x864.png 1536w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_4-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_4-1068x601.png 1068w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_4-747x420.png 747w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_4.png 1919w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Your disk cache is now disabled. We can verify the change by revisiting the <strong>about:cache</strong> page.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="576" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/12/disk-cache-disable_5-1024x576.png" alt="" class="wp-image-16349" srcset="https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_5-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_5-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_5-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_5-1536x864.png 1536w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_5-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_5-1068x601.png 1068w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_5-747x420.png 747w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_5.png 1919w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Most of the caching is now be performed by the Squid proxy server, complemented by the Firefox memory cache.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/disable-firefox-web-browser-disk-cache-when-using-squid-proxy-server/">Disable Firefox Web Browser Disk Cache When Using Squid Proxy Server</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/disable-firefox-web-browser-disk-cache-when-using-squid-proxy-server/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
