Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function __autoload($classe){
- require_once("classes/$classe.class.php");
- }
- $cache = new Cache();
- if($cache->isCache('home')):
- ?>
- <?php ob_start();?>
- <!DOCTYPE HTML>
- <html lang="pt-BR">
- <head>
- <meta charset="UTF-8">
- <title></title>
- </head>
- <body>
- site da home
- </body>
- </html>
- <?php
- $content = ob_get_contents();
- ob_end_clean();
- $cache->write('home', $content);
- endif
- ?>
- <?php echo $cache->read('home'); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement