<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Disable server side cache]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=7501&amp;type=atom" />
	<updated>2018-11-04T01:29:57Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=7501</id>
		<entry>
			<title type="html"><![CDATA[Re: Disable server side cache]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=33136#p33136" />
			<content type="html"><![CDATA[<p>@poncho1234: You are right - the company/#/js_cache/1/* vanishes.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2018-11-04T01:29:57Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=33136#p33136</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Disable server side cache]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=33129#p33129" />
			<content type="html"><![CDATA[<p>@joe, @apmuthu, This is already in core - click the &#039;Update&#039; button in &#039;Preferences&#039;</p><p>The above mod just lets you do it in one click and stays on current page instead of three clicks (-&gt;Preferences click Update) and changing page to Preferences, then at least one click to return to the page you were on.</p><p>If you&#039;re making changes to css it saves a few clicks and time everytime you update</p>]]></content>
			<author>
				<name><![CDATA[poncho1234]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19944</uri>
			</author>
			<updated>2018-11-03T15:16:38Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=33129#p33129</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Disable server side cache]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=33128#p33128" />
			<content type="html"><![CDATA[<p>I will have a look into this.</p><p>Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2018-11-03T14:20:15Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=33128#p33128</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Disable server side cache]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=33118#p33118" />
			<content type="html"><![CDATA[<p>@joe: can this be generically updated in the core?</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2018-11-03T08:00:09Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=33118#p33118</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Disable server side cache]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=33108#p33108" />
			<content type="html"><![CDATA[<p><strong>Not for production</strong> </p><p>Whilst looking for something else I discovered there were already a few functions in FA that clear the cache</p><p>So added to renderer.php</p><p>If you want an icon:-<br /></p><div class="codebox"><pre><code>File: \themes\default\renderer.php
87:                 $dimg = &quot;&lt;img src=&#039;$path_to_root/themes/&quot;.user_theme().&quot;/images/remove.png&#039; style=&#039;width:14px;height:14px;border:0;vertical-align:middle;&#039; alt=&#039;&quot;._(&#039;Delete Cache&#039;).&quot;&#039;&gt;&amp;nbsp;&amp;nbsp;&quot;;</code></pre></div><p>Then add:-<br /></p><div class="codebox"><pre><code>File: \themes\default\renderer.php
097:                 function delete_company_cache(){
098:                     flush_dir(company_path().&#039;/js_cache&#039;);
099:                 }
100:                 echo &quot;&lt;a class=&#039;shortcut&#039; href=&#039;?delete_company_cache=true&#039;&gt;$dimg&quot; . _(&quot;Delete Cache&quot;) . &quot;&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;\n&quot;;
101:                 
102:                 if(isset($_GET[&#039;delete_company_cache&#039;])){
103:                     delete_company_cache();
104:                 }</code></pre></div><p>It does not disable cache, just clears cache just for the company you are logged on to when you want from any page</p>]]></content>
			<author>
				<name><![CDATA[poncho1234]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19944</uri>
			</author>
			<updated>2018-11-02T16:50:34Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=33108#p33108</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Disable server side cache]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=31607#p31607" />
			<content type="html"><![CDATA[<p>Thanks apmuthu, that&#039;s a very good idea, i&#039;ll check those out tomorrow</p>]]></content>
			<author>
				<name><![CDATA[poncho1234]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19944</uri>
			</author>
			<updated>2018-05-09T04:07:25Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=31607#p31607</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Disable server side cache]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=31601#p31601" />
			<content type="html"><![CDATA[<p>Have a cron job clear the tmp folder where the cache gets stored or disable caching in the apache server config.</p><p>Refer:<br />http://bertanguven.com/disable-caching-of-assets-in-apache<br />https://stackoverflow.com/questions/11532636/how-to-prevent-http-file-caching-in-apache-httpd-mamp<br />https://gist.github.com/JamieMason/3245483</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2018-05-08T19:28:46Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=31601#p31601</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Disable server side cache]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=31590#p31590" />
			<content type="html"><![CDATA[<p>Is there a way to disable server side caching temporarily for development?<br />Its time consuming to delete the server side cache after every change in code</p>]]></content>
			<author>
				<name><![CDATA[poncho1234]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19944</uri>
			</author>
			<updated>2018-05-07T20:52:37Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=31590#p31590</id>
		</entry>
</feed>
