Skip to content

Commit

Permalink
Update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
atas committed Oct 15, 2023
1 parent 8991fcf commit 9ecc16b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions system/cachingUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ function findMostRecentlyUpdatedFile($dir) {
/*
* TODO: This function needs refactoring, should be a class, and needs tests.
* It can also be used for caching individual .md files.
*
* This function reads the posts directory to generate posts.json file
* This way we are not compiling every .md file to read its meta data (front matter)
* If any post's last modified time is newer than the cached posts.json file, it will be updated
* @return Post[]
*/
function updateAndGetCachedPostList(): array
Expand Down

0 comments on commit 9ecc16b

Please sign in to comment.