title: smarty loading time too long when LAN has no internet connection
body: <p>I have the following situation:</p>
  
  <p>I was developing an administrative web system using PHP Smarty and Xajax.
  I had no problems or issues when developing other than usual mistakes when writing the code, but I was fixing those issues on the go.</p>
  
  <p>The LAN where the DB and Apache servers are have internet access and the behaviour of the website was the expected.</p>
  
  <p>Two days ago the LAN I was working on was blocked to access the internet in order to test other system behaviour and trying to reproduce future production environment, and I noticed that the system I was working on, right from that moment on had a very long loading time, it loads but it takes quite a while, about 30 seconds or more, when before, with internet access, it was loading instantly.</p>
  
  <p>After noticing this, I told the network admin to allow this LAN access to internet again, and the loading time was back to normal, after that that LAN was again without internet, and again the loading time was very long.</p>
  
  <p>My smarty configuration that is in an included file in every php file is:</p>
  
  <pre><code>$smarty = new Smarty();
  $smarty-&gt;cache_lifetime = 300;
  $smarty-&gt;template_dir = "templates";
  $smarty-&gt;compile_dir = "lib/smarty/templates_c";
  $smarty-&gt;cache_dir = "lib/smarty/cache";
  $smarty-&gt;config_dir = "lib/smarty/configs";
  </code></pre>
  
  <p>since I have Mysql server and Apache server in an internal LAN there shouldn't be any connectivity issues, so why is this happening?</p>
  
  <p>I was hoping that anyone that had faced similar situation could give me any hint on why is this happening and how to solve it.</p>