PHP Classes

how to use?

Recommend this page to a friend!

      My PHP Page Cache  >  All threads  >  how to use?  >  (Un) Subscribe thread alerts  
Subject:how to use?
Summary:example please
Messages:4
Author:loop
Date:2013-02-02 08:38:32
Update:2013-02-18 10:42:02
 

 


  1. how to use?   Reply   Report abuse  
Picture of loop loop - 2013-02-02 08:38:32
Hi,

can you please post few examples how to use it?

Thanks

  2. Re: how to use?   Reply   Report abuse  
Picture of Tomasz Wieleba 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");
}

  3. Re: how to use?   Reply   Report abuse  
Picture of loop loop - 2013-02-06 13:27:41 - In reply to message 2 from Tomasz Wieleba
working great just not

load_cache_page
save_cache_page

it's

load_page
save_page


  4. Re: how to use?   Reply   Report abuse  
Picture of Tomasz Wieleba Tomasz Wieleba - 2013-02-18 10:42:02 - In reply to message 3 from loop
I'm sorry, my mistake.