<?php
 
 
require_once ('cache/cache.php');
 
 
class main {
 
 
    function main() {
 
    
 
        ...
 
        
 
        $this->cache = new cache();
 
    
 
    }
 
 
    ...
 
    
 
    function show() {
 
    
 
        $html = $this->cache->return_cache();
 
            
 
        if ($html == false) {
 
            $html = this->render_site();
 
        }
 
        
 
        $this->cache->make_cache($html);
 
    
 
        echo $html;
 
    }
 
 
}
 
 
?>
 
 |