Skip to content
Snippets Groups Projects
Commit dd531f63 authored by Thilaksan Thevaranjan's avatar Thilaksan Thevaranjan
Browse files

Such Cache aktualisiert sich einmal pro Tag

parent 3bf3f833
Branches
No related merge requests found
......@@ -22,6 +22,10 @@ class CacheGenerator{
private $postCount = 0;
function __construct() {
//already updated for today?
if(json_decode(file_get_contents("./content/cache/suche.json"))->lastUpdate==getDate()["mday"])
return;
//Sammelt alle Post.
$postList = $this->postListAllFiles();
//Verarbeitet die Posts und ezeugt eine cache/suche.json
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment