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:
@@ -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;
|
||||
Reference in New Issue
Block a user