aboutsummaryrefslogtreecommitdiff
path: root/_site/includes/articles/getlist.php
diff options
context:
space:
mode:
authorMinteck <46352972+Minteck@users.noreply.github.com>2021-06-29 21:10:46 +0200
committerMinteck <46352972+Minteck@users.noreply.github.com>2021-06-29 21:10:46 +0200
commit5c5014a95ae79af4b052b5011e7d0c11d6eae6a6 (patch)
tree2e01690505d48a296d1826096f974762f46380dc /_site/includes/articles/getlist.php
parentd2733aa17b7932dfb78e97639e7d568ac41b9ee1 (diff)
downloadunchainedtech-5c5014a95ae79af4b052b5011e7d0c11d6eae6a6.tar.gz
unchainedtech-5c5014a95ae79af4b052b5011e7d0c11d6eae6a6.tar.bz2
unchainedtech-5c5014a95ae79af4b052b5011e7d0c11d6eae6a6.zip
It's all done? Almost, just missing the RSS feed!
Diffstat (limited to '_site/includes/articles/getlist.php')
-rw-r--r--_site/includes/articles/getlist.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/_site/includes/articles/getlist.php b/_site/includes/articles/getlist.php
index 5f55574..e3947f2 100644
--- a/_site/includes/articles/getlist.php
+++ b/_site/includes/articles/getlist.php
@@ -1,7 +1,11 @@
<?php
+$listGetTimeout = 0;
+
function getArticlesList() {
+ $listGetStart = new DateTime("now");
global $Parsedown;
+ global $listGetTimeout;
$list = [];
$files = scandir($_SERVER['DOCUMENT_ROOT'] . "/../_posts");
@@ -82,5 +86,10 @@ function getArticlesList() {
}
}
+ $listGetEnd = new DateTime("now");
+
+ $listGetTimeoutA = $listGetStart->diff($listGetEnd);
+ $listGetTimeout = $listGetTimeoutA->f;
+
return $list;
} \ No newline at end of file