feat: enhance CDN source management with last refreshed timestamp

Added functionality to track the last refreshed timestamp for CDN sources. Updated the database schema and relevant methods to include the last refreshed timestamp during creation and updates. Implemented logic to skip fetching CDN sources based on their refresh interval, improving efficiency in the module prefix collection process. Enhanced the data retrieval methods to support the new timestamp field, ensuring accurate state management for CDN sources.
This commit is contained in:
Denozordec
2026-04-09 16:04:53 +07:00
parent 8a50ba44b3
commit 47764345f6
9 changed files with 112 additions and 27 deletions
@@ -0,0 +1,2 @@
ALTER TABLE module_cdn_source
DROP COLUMN last_refreshed_at;
@@ -0,0 +1,2 @@
ALTER TABLE module_cdn_source
ADD COLUMN last_refreshed_at TIMESTAMPTZ NULL;