update caching to use file system last modified time #39

Open
opened 2026-08-20 22:21:08 -04:00 by kevintl1998 · 0 comments
Owner

Current caching method computes the hash of the output config file and uses that to determine if the cached output config file should be saved. I've run into a problem where the output config does not get generated even though it does not exist.
Using the last modified time from the file system is easier and more reliable.

The logic to determine if the output config file should be generated should happen before it is actually generated. Currently its being generated, checked if it should be updated via the hash, then the cache is saved.

Current caching method computes the hash of the output config file and uses that to determine if the cached output config file should be saved. I've run into a problem where the output config does not get generated even though it does not exist. Using the last modified time from the file system is easier and more reliable. The logic to determine if the output config file should be generated should happen before it is actually generated. Currently its being generated, checked if it should be updated via the hash, then the cache is saved.
kevintl1998 added this to the Release 1.0 milestone 2026-08-20 22:25:30 -04:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
kevintl1998/yapp.nvim#39
No description provided.