title: function call 'clear_all_cache' and 'clear_assign' is unknown or deprecated. error in smarty?
body: <p>I need to remove the cache when a user change language, but I get an error message.</p>
  
  <pre><code>  $smarty = new Smarty;
   //$smarty-&gt;force_compile = true;
   $smarty-&gt;debugging = true;
   $smarty-&gt;caching = false;
   $smarty-&gt;cache_lifetime = 120;
  
   if (isset($_COOKIE['country'])) 
    {
   $country = $_COOKIE['country'];
  
    $language = "eng";
  
   if ($country == "NO"){    
    $language = "nor";
  
    $smarty-&gt;clear_all_cache();
    }      
   }
  </code></pre>
  
  <p>I also get this message when i use clear_assign:</p>
  
  <pre><code>function call 'clear_assign' is unknown or deprecated
  </code></pre>