Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // IN FONDO PAGINA
- <?php
- ######## Your Website Content Ends here #########
- if (!is_dir($cache_folder)) { //create a new folder if we need to
- mkdir($cache_folder);
- }
- if(!$ignore){
- $fp = fopen($cache_file, 'w'); //open file for writing
- fwrite($fp, ob_get_contents()); //write contents of the output buffer in Cache file
- fclose($fp); //Close file pointer
- }
- ob_end_flush(); //Flush and turn off output buffering
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement