daily pastebin goal
74%
SHARE
TWEET

Untitled

a guest Feb 9th, 2013 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. function __autoload($classe){
  3.   require_once("classes/$classe.class.php");
  4. }
  5.  
  6. $cache  = new Cache();
  7. if($cache->isCache('home')):
  8. ?>
  9. <?php ob_start();?>
  10.  
  11. <!DOCTYPE HTML>
  12. <html lang="pt-BR">
  13. <head>
  14.         <meta charset="UTF-8">
  15.         <title></title>
  16. </head>
  17. <body>
  18.         site da home
  19. </body>
  20. </html>
  21.  
  22. <?php
  23.         $content = ob_get_contents();
  24.         ob_end_clean();
  25.         $cache->write('home', $content);
  26.         endif
  27. ?>
  28. <?php echo $cache->read('home'); ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top