This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class='night-sky'> | |
<div class="star-box"> | |
<div class='star twinkle-star-1'></div> | |
<div class='star twinkle-star-2'></div> | |
<div class='star twinkle-star-3'></div> | |
<div class='star twinkle-star-4'></div> | |
<div class='star twinkle-star-5'></div> | |
<div class='star twinkle-star-6'></div> | |
<div class='star twinkle-star-7'></div> | |
<div class="line line-1"></div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//settings | |
$cache_ext = '.html'; //file extension | |
$cache_time = 3600; //Cache file expires afere these seconds (1 hour = 3600 sec) | |
$cache_folder = 'cache/'; //folder to store Cache files | |
$ignore_pages = array('', ''); | |
$dynamic_url = 'http://'.$_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] . $_SERVER['QUERY_STRING']; // requested dynamic page (full url) | |
$cache_file = $cache_folder.md5($dynamic_url).$cache_ext; // construct a cache file | |
$ignore = (in_array($dynamic_url,$ignore_pages))?true:false; //check if url is in ignore list |