$compile_id
Persistant compile identifier. As an alternative to passing the same
- compile_id to each and every function call, you can set this
- compile_id and it will be used implicitly thereafter.
+ $compile_id to each and every function call, you can set this
+ $compile_id and it will be used implicitly thereafter.
- With a compile_id you can work around the limitation that you cannot
+ With a $compile_id you can work around the limitation that you cannot
use the same
$compile_dir
for different
$template_dirs. If you set a
- distinct compile_id for each template_dir then smarty can tell the
- compiled templates apart by their compile_id.
+ distinct $compile_id for each
+ $template_dir then Amarty can tell the
+ compiled templates apart by their $compile_id.
If you have for example a
@@ -29,13 +30,13 @@
multiple domains / multiple virtual hosts.
- $compile_id
+ $compile_id in a virtual host enviroment
compile_id = $_SERVER['SERVER_NAME'];
-$smarty->compile_dir = 'path/to/shared_compile_dir';
+$smarty->compile_dir = '/path/to/shared_compile_dir';
?>
]]>
diff --git a/docs/en/programmers/caching/caching-groups.xml b/docs/en/programmers/caching/caching-groups.xml
index 74e725a8..9a579af7 100644
--- a/docs/en/programmers/caching/caching-groups.xml
+++ b/docs/en/programmers/caching/caching-groups.xml
@@ -41,18 +41,18 @@ $smarty = new Smarty;
$smarty->caching = true;
-// clear all caches with "sports|basketball" as the first two cache_id groups
-$smarty->clear_cache(null,"sports|basketball");
+// clear all caches with 'sports|basketball' as the first two cache_id groups
+$smarty->clear_cache(null,'sports|basketball');
// clear all caches with "sports" as the first cache_id group. This would
// include "sports|basketball", or "sports|(anything)|(anything)|(anything)|..."
-$smarty->clear_cache(null,"sports");
+$smarty->clear_cache(null,'sports');
// clear the foo.tpl cache file with "sports|basketball" as the cache_id
-$smarty->clear_cache("foo.tpl","sports|basketball");
+$smarty->clear_cache('foo.tpl','sports|basketball');
-$smarty->display('index.tpl',"sports|basketball");
+$smarty->display('index.tpl','sports|basketball');
?>
]]>
diff --git a/docs/en/programmers/caching/caching-setting-up.xml b/docs/en/programmers/caching/caching-setting-up.xml
index f5281fe7..dea9aae8 100644
--- a/docs/en/programmers/caching/caching-setting-up.xml
+++ b/docs/en/programmers/caching/caching-setting-up.xml
@@ -45,8 +45,8 @@ $smarty->display('index.tpl');
regenerated. It is possible to give individual caches their own expiration
time by setting
$caching = 2.
- See the documentation on $cache_lifetime for details.
+ See $cache_lifetime for more details.
setting $cache_lifetime per cache
@@ -106,7 +106,10 @@ $smarty->display('index.tpl');
the cache files will always be regenerated. This effectively turns off
caching.
$force_compile
- is usually for debugging purposes only, a more
+ is usually for
+ debugging
+ purposes only, a more
efficient way of disabling caching is to set $caching = false (or 0.)
@@ -141,15 +144,19 @@ $smarty->display('index.tpl');
You can keep parts of a page dynamic with the {insert} template function. Let's
say the whole page can be cached except for a banner that is displayed down
- the right side of the page. By using an insert function for the banner, you
+ the right side of the page. By using an
+ {insert}
+ function for the banner, you
can keep this element dynamic within the cached content. See the
documentation on {insert} for
- details and examples.
+ more details and examples.
You can clear all the cache files with the clear_all_cache() function, or
- individual cache files (or groups) with the (or groups)
+ with the clear_cache() function.