diff options
| Commit | bfdefbab3581739ef866b03324394fd34e9b06e3 (patch) | |
|---|---|---|
| Author | 2023-09-10 17:21:18 +0300 | |
| Committer | 2023-09-10 17:21:18 +0300 | |
| Files | 45c292ee388e720908da91f6f339fdff93d95a19 /.gitignore | |
| syndamia.com-bfdefbab3581739ef866b03324394fd34e9b06e3.tar syndamia.com-bfdefbab3581739ef866b03324394fd34e9b06e3.tar.gz syndamia.com-bfdefbab3581739ef866b03324394fd34e9b06e3.zip | ||
| Parent | 15c884e8dcaca3d7e95a5a8e513a682d555cf06c (diff) | |
[Pagenav] Updated logic to get timestamps from a "cache" file
Before, on every website generation, every page ran the git command to extract it's created and edited date.
This was very slow, increasing "build" times by over a second.
Now, generate.sh creates a special text file with timestamps for all pages that might want it, getting the slow git
opeations out of the way first, before any awk scripts, and then the awk script looks into that file for data.
The timestamps file is recreated only upon a new commit, so subsequence website builds are faster.
1 files changed, 1 insertions, 0 deletions
| -rw-r--r-- | .gitignore | 1 |
@@ -3,3 +3,4 @@ website/ tiny.website/ website.tiny/ *.swp +timestamps.txt |