
Tomasz Wieleba - 2013-02-05 18:10:53 -
In reply to message 1 from loop
for variables:
$cache = new lib_cache;
$config = $cache -> load("config","60","tab");
if(!$config) {
$config = array(
"version"=>"1",
"page"=>"cache",
"test"=>"0",
"dev"=>"1934"
);
$cache -> save("config",$config,"tab");
}
for output:
$cache = new lib_cache;
if(!$cache -> load_cache_page("index",60,"Pages")) {
echo '<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8" />
<title>test</title>
</head>
test
</body>
</html>';
$cache -> save_cache_page("index","Pages");
}