Subversion-Projekte lars-tiefland.laravel_shop

Revision

Zur aktuellen Revision | Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
\$compile\_check {#variable.compile.check}
2
================
3
 
4
Upon each invocation of the PHP application, Smarty tests to see if the
5
current template has changed (different timestamp) since the last time
6
it was compiled. If it has changed, it recompiles that template. If the
7
template has yet not been compiled at all, it will compile regardless of
8
this setting. By default this variable is set to TRUE.
9
 
10
Once an application is put into production (ie the templates won\'t be
11
changing), the compile check step is no longer needed. Be sure to set
12
`$compile_check` to FALSE for maximum performance. Note that if you
13
change this to FALSE and a template file is changed, you will \*not\*
14
see the change since the template will not get recompiled.
15
 
16
If [`$caching`](#variable.caching) is enabled and `$compile_check` is
17
enabled, then the cache files will get regenerated if an involved
18
template file or config file was updated.
19
 
20
As of Smarty 3.1 `$compile_check` can be set to the value
21
`Smarty::COMPILECHECK_CACHEMISS`. This enables Smarty to revalidate the
22
compiled template, once a cache file is regenerated. So if there was a
23
cached template, but it\'s expired, Smarty will run a single
24
compile\_check before regenerating the cache.
25
 
26
See [`$force_compile`](#variable.force.compile) and
27
[`clearCompiledTemplate()`](#api.clear.compiled.tpl).