HttpRuntime. Cache invalid, httpruntime. cache
Recently, I made a newspaper content website. In order to improve the response speed, I stored the Part document list of each topic on the homepage and the second topic in HttpRuntime. cache. problems are found after the release, and the inserted Cache will soon become invalid, so there is no problem with local debugging.
Because the HttpRuntime. Cache mechanism has dependency, expiration, and priority policies, check that the Code does not trigger the renewal of dependency changes or expires. It is suspected that the problem lies in the setting of IIS Memory Management.
Compared with the advanced settings of the application pool of the test machine, the following settings are found: the dedicated memory limit is bold, indicating that this top should have been set by others. After this item is set to 0, test HttpRuntime again. the Cache is no longer lost quickly and functions are restored.