Skip to content

Commit

Permalink
add field to hold timestamp of cached result
Browse files Browse the repository at this point in the history
Will help to debug certain things to be able to more selectively flush the cache
  • Loading branch information
Nate-Wessel committed Jan 15, 2025
1 parent df5f031 commit c0433e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/tables/travel_time_cache.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ CREATE TABLE nwessel.cached_travel_times (
uri_string text CHECK(uri_string ~ '^\/\d+\/\d+\/\d{1,2}\/\d{1,2}\/\d{4}-\d{2}-\d{2}\/\d{4}-\d{2}-\d{2}\/(true|false)\/[1-7]{1,7}$'),
commit_hash text,
results jsonb NOT NULL,
first_requested timestamptz DEFAULT NOW(),
PRIMARY KEY (uri_string, commit_hash)
);

Expand Down

0 comments on commit c0433e0

Please sign in to comment.