| 
									
										
										
										
											2004-04-13 11:47:32 +00:00
										 |  |  | <?xml version="1.0" encoding="iso-8859-1"?> | 
					
						
							|  |  |  | <!-- $Revision$ --> | 
					
						
							| 
									
										
										
										
											2004-04-18 19:22:55 +00:00
										 |  |  | <refentry id="api.clear.compiled.tpl"> | 
					
						
							|  |  |  |  <refnamediv> | 
					
						
							| 
									
										
										
										
											2005-05-27 16:25:02 +00:00
										 |  |  |   <refname>clear_compiled_tpl()</refname> | 
					
						
							|  |  |  |   <refpurpose>clears the compiled version of the specified template resource</refpurpose> | 
					
						
							| 
									
										
										
										
											2004-04-18 19:22:55 +00:00
										 |  |  |  </refnamediv> | 
					
						
							|  |  |  |  <refsect1> | 
					
						
							| 
									
										
										
										
											2005-05-27 16:25:02 +00:00
										 |  |  |   <title>Description</title> | 
					
						
							| 
									
										
										
										
											2004-04-18 19:22:55 +00:00
										 |  |  |   <methodsynopsis> | 
					
						
							|  |  |  |    <type>void</type><methodname>clear_compiled_tpl</methodname> | 
					
						
							|  |  |  |    <methodparam choice="opt"><type>string</type><parameter>tpl_file</parameter></methodparam> | 
					
						
							| 
									
										
										
										
											2005-05-27 16:25:02 +00:00
										 |  |  |    <methodparam choice="opt"><type>string</type><parameter>compile_id</parameter> | 
					
						
							|  |  |  |    </methodparam> | 
					
						
							| 
									
										
										
										
											2004-04-18 19:22:55 +00:00
										 |  |  |    <methodparam choice="opt"><type>int</type><parameter>exp_time</parameter></methodparam> | 
					
						
							|  |  |  |   </methodsynopsis> | 
					
						
							|  |  |  |   <para> | 
					
						
							|  |  |  |    This clears the compiled version of the specified template | 
					
						
							|  |  |  |    resource, or all compiled template files if one is not specified. | 
					
						
							| 
									
										
										
										
											2005-05-27 16:25:02 +00:00
										 |  |  |    If you pass a <link linkend="variable.compile.id">$compile_id</link> | 
					
						
							|  |  |  |    only the compiled template for this | 
					
						
							|  |  |  |    specific <link linkend="variable.compile.id">$compile_id</link> | 
					
						
							|  |  |  |    is cleared. if you pass an exp_time, then only | 
					
						
							| 
									
										
										
										
											2004-04-18 19:22:55 +00:00
										 |  |  |    compiled templates older than exp_time seconds are cleared, by | 
					
						
							|  |  |  |    default all compiled templates are cleared regardless of their age. | 
					
						
							|  |  |  |    This function is for advanced use only, not normally needed. | 
					
						
							|  |  |  |   </para> | 
					
						
							|  |  |  |   <example> | 
					
						
							| 
									
										
										
										
											2005-05-27 16:25:02 +00:00
										 |  |  |    <title>clear_compiled_tpl()</title> | 
					
						
							| 
									
										
										
										
											2004-04-18 19:22:55 +00:00
										 |  |  |    <programlisting role="php"> | 
					
						
							| 
									
										
										
										
											2004-04-13 11:47:32 +00:00
										 |  |  | <![CDATA[ | 
					
						
							|  |  |  | <?php | 
					
						
							|  |  |  | // clear a specific template resource | 
					
						
							|  |  |  | $smarty->clear_compiled_tpl("index.tpl"); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // clear entire compile directory | 
					
						
							|  |  |  | $smarty->clear_compiled_tpl(); | 
					
						
							|  |  |  | ?> | 
					
						
							|  |  |  | ]]> | 
					
						
							| 
									
										
										
										
											2004-04-18 19:22:55 +00:00
										 |  |  |    </programlisting> | 
					
						
							|  |  |  |   </example> | 
					
						
							|  |  |  |  </refsect1> | 
					
						
							|  |  |  | </refentry> | 
					
						
							| 
									
										
										
										
											2004-04-13 11:47:32 +00:00
										 |  |  | <!-- Keep this comment at the end of the file
 | 
					
						
							|  |  |  | Local variables: | 
					
						
							|  |  |  | mode: sgml | 
					
						
							|  |  |  | sgml-omittag:t | 
					
						
							|  |  |  | sgml-shorttag:t | 
					
						
							|  |  |  | sgml-minimize-attributes:nil | 
					
						
							|  |  |  | sgml-always-quote-attributes:t | 
					
						
							|  |  |  | sgml-indent-step:1 | 
					
						
							|  |  |  | sgml-indent-data:t | 
					
						
							|  |  |  | indent-tabs-mode:nil | 
					
						
							|  |  |  | sgml-parent-document:nil | 
					
						
							|  |  |  | sgml-default-dtd-file:"../../../../manual.ced" | 
					
						
							|  |  |  | sgml-exposed-tags:nil | 
					
						
							|  |  |  | sgml-local-catalogs:nil | 
					
						
							|  |  |  | sgml-local-ecat-files:nil | 
					
						
							|  |  |  | End: | 
					
						
							|  |  |  | vim600: syn=xml fen fdm=syntax fdl=2 si | 
					
						
							|  |  |  | vim: et tw=78 syn=sgml | 
					
						
							|  |  |  | vi: ts=1 sw=1 | 
					
						
							| 
									
										
										
										
											2004-04-18 19:22:55 +00:00
										 |  |  | --> | 
					
						
							| 
									
										
										
										
											2005-05-27 16:25:02 +00:00
										 |  |  | 
 |