Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > by-pkgid > 8377d4bb25a3992aad680df2952f4b71 > files > 154

php-smarty-doc-2.6.26-1mdv2010.0.noarch.rpm

<HTML
><HEAD
><TITLE
>$compile_check</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="Smarty Manual"
HREF="index.html"><LINK
REL="UP"
TITLE="Smarty Class Variables"
HREF="api.variables.html"><LINK
REL="PREVIOUS"
TITLE="$autoload_filters"
HREF="variable.autoload.filters.html"><LINK
REL="NEXT"
TITLE="$force_compile"
HREF="variable.force.compile.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=ISO-8859-1"></HEAD
><BODY
CLASS="sect1"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Smarty Manual</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="variable.autoload.filters.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 12. Smarty Class Variables</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="variable.force.compile.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="sect1"
><H1
CLASS="sect1"
><A
NAME="variable.compile.check"
></A
>$compile_check</H1
><P
>&#13;	   Upon each invocation of the PHP application, Smarty tests to see if the
	   current template has changed (different time stamp) since the last time
	   it was compiled. If it has changed, it recompiles that template. If the
	   template has not been compiled, it will compile regardless of this
	   setting. By default this variable is set to <TT
CLASS="constant"
>TRUE</TT
>.
      </P
><P
>Once an application is
	   put into production (ie the templates won't be changing),
       the compile check step is no longer needed. Be sure to set
       <TT
CLASS="parameter"
><I
>$compile_check</I
></TT
> to <TT
CLASS="constant"
>FALSE</TT
> for
	   maximal performance. Note that if you change this to <TT
CLASS="constant"
>FALSE</TT
> and a
	   template file is changed, you will *not* see the change since the
	   template will not get recompiled. If
	   <A
HREF="variable.caching.html"
><TT
CLASS="parameter"
><I
>$caching</I
></TT
></A
>
	   is enabled and <TT
CLASS="parameter"
><I
>$compile_check</I
></TT
> is enabled, then
       the cache files will get regenerated if
	   an involved template file or config file was updated. See <A
HREF="variable.force.compile.html"
>&#13;       <TT
CLASS="parameter"
><I
>$force_compile</I
></TT
></A
> and <A
HREF="api.clear.compiled.tpl.html"
><TT
CLASS="varname"
>clear_compiled_tpl()</TT
>
       </A
>.
      </P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="variable.autoload.filters.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="variable.force.compile.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>$autoload_filters</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="api.variables.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>$force_compile</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>