snipt

Ctrl+h for KB shortcuts

PHP

Clear Smarty Cache

1
2
3
4
5
<?php

$smarty->clearAllCache($smarty->cache_dir);

?>
https://snipt.net/embed/ac0eeee4a65e1a2178a844e1252e21e3/
/raw/ac0eeee4a65e1a2178a844e1252e21e3/
ac0eeee4a65e1a2178a844e1252e21e3
php
PHP
5
2019-06-09T03:34:46
True
False
False
/api/public/snipt/50808/
clear-smarty-cache
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="cp">&lt;?php</span> </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a><span class="nv">$smarty</span><span class="o">-&gt;</span><span class="na">clearAllCache</span><span class="p">(</span><span class="nv">$smarty</span><span class="o">-&gt;</span><span class="na">cache_dir</span><span class="p">);</span> </span><span id="L-4"><a name="L-4"></a> </span><span id="L-5"><a name="L-5"></a><span class="cp">?&gt;</span><span class="x"></span> </span></pre></div> </td></tr></table>