mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 19:04:27 +02:00
remove caching logic
This commit is contained in:
@@ -59,15 +59,6 @@ class Smarty
|
|||||||
var $global_assign = array( 'SCRIPT_NAME'
|
var $global_assign = array( 'SCRIPT_NAME'
|
||||||
);
|
);
|
||||||
|
|
||||||
var $cache_enable = true; // turn template cache on/off
|
|
||||||
|
|
||||||
var $cache_dir = ""; // the directory path where
|
|
||||||
// cached templates are placed.
|
|
||||||
// if empty, uses compile directory
|
|
||||||
|
|
||||||
var $cache_exp_time = 3600; // number of seconds cache is good for
|
|
||||||
|
|
||||||
|
|
||||||
// internal vars
|
// internal vars
|
||||||
var $_error_msg = false; // error messages
|
var $_error_msg = false; // error messages
|
||||||
var $_tpl_vars = array();
|
var $_tpl_vars = array();
|
||||||
|
@@ -12,6 +12,10 @@ $smarty->assign("Class",array(array("A","B","C","D"), array("E", "F", "G", "H"),
|
|||||||
|
|
||||||
$smarty->display("./templates/index.tpl");
|
$smarty->display("./templates/index.tpl");
|
||||||
|
|
||||||
print "\ndone\n";
|
|
||||||
|
|
||||||
|
function test_insert()
|
||||||
|
{
|
||||||
|
print "<br>this is a test for the insert function<br>\n";
|
||||||
|
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
|
@@ -20,3 +20,7 @@ My interests are:
|
|||||||
{/section}
|
{/section}
|
||||||
|
|
||||||
({$FirstName|@count})
|
({$FirstName|@count})
|
||||||
|
|
||||||
|
{insert name=test_insert}
|
||||||
|
{insert name=test_insert}
|
||||||
|
{insert name=test_insert}
|
||||||
|
@@ -12,6 +12,10 @@ $smarty->assign("Class",array(array("A","B","C","D"), array("E", "F", "G", "H"),
|
|||||||
|
|
||||||
$smarty->display("./templates/index.tpl");
|
$smarty->display("./templates/index.tpl");
|
||||||
|
|
||||||
print "\ndone\n";
|
|
||||||
|
|
||||||
|
function test_insert()
|
||||||
|
{
|
||||||
|
print "<br>this is a test for the insert function<br>\n";
|
||||||
|
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
|
@@ -59,15 +59,6 @@ class Smarty
|
|||||||
var $global_assign = array( 'SCRIPT_NAME'
|
var $global_assign = array( 'SCRIPT_NAME'
|
||||||
);
|
);
|
||||||
|
|
||||||
var $cache_enable = true; // turn template cache on/off
|
|
||||||
|
|
||||||
var $cache_dir = ""; // the directory path where
|
|
||||||
// cached templates are placed.
|
|
||||||
// if empty, uses compile directory
|
|
||||||
|
|
||||||
var $cache_exp_time = 3600; // number of seconds cache is good for
|
|
||||||
|
|
||||||
|
|
||||||
// internal vars
|
// internal vars
|
||||||
var $_error_msg = false; // error messages
|
var $_error_msg = false; // error messages
|
||||||
var $_tpl_vars = array();
|
var $_tpl_vars = array();
|
||||||
|
@@ -20,3 +20,7 @@ My interests are:
|
|||||||
{/section}
|
{/section}
|
||||||
|
|
||||||
({$FirstName|@count})
|
({$FirstName|@count})
|
||||||
|
|
||||||
|
{insert name=test_insert}
|
||||||
|
{insert name=test_insert}
|
||||||
|
{insert name=test_insert}
|
||||||
|
Reference in New Issue
Block a user