deferred.txt
来自「php 开发的内容管理系统」· 文本 代码 · 共 20 行
TXT
20 行
deferred.txtA few of the database updates required by various functions herecan be deferred until after the result page is displayed to theuser. For example, updating the view counts, updating thelinked-to tables after a save, etc. PHP does not yet have anyway to tell the server to actually return and disconnect whilestill running these updates (as a Java servelet could), but itmight have such a feature in the future.We handle these by creating a deferred-update object (in a realO-O language these would be classes that implement an interface)and putting those objects on a global list, then executing thewhole list after the page is displayed. We don't do anythingsmart like collating updates to the same table or such becausethe list is almost always going to have just one item on it, ifthat, so it's not worth the trouble.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?