AlinsRan commented on code in PR #12526:
URL: https://github.com/apache/apisix/pull/12526#discussion_r2281124876


##########
apisix/admin/standalone.lua:
##########
@@ -233,11 +252,17 @@ local function update(ctx)
         end
     end
 
+    -- write metadata
+    apisix_yaml[METADATA_LAST_MODIFIED] = ngx_time()

Review Comment:
   You might consider storing `METADATA_LAST_MODIFIED` and `METADATA_DIGEST` in 
a separate shared memory key rather than mixing them into apisix_yaml, so as 
not to affect the diff logic and to keep the config structure cleaner.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to