gpt4 book ai didi

caching - Blue Dragon Coldfusion 服务器缓存问题

转载 作者:行者123 更新时间:2023-12-02 14:22:30 24 4
gpt4 key购买 nike

我有一个在 ColdFusion MVC 框架“Mach-II”中构建的应用程序,并托管在蓝龙 ColdFusion 服务器上。

它会导致缓存问题。当我添加一个包含一些内容的新页面并加载该页面时,它工作正常。但是,当我在同一个文件中进行一些更改并再次点击它时,它不会更新我的更改。它总是向我展示我第一次制作的内容。看起来服务器正在缓存我的页面并且没有考虑进一步的更改。我尝试了很多解决方案,但未能解决问题。

如果您有任何解决方案,请告诉我。

最佳答案

这对于评论来说有点太长了 - 但这并不是一个答案。

首先,您的问题对于 StackOverflow 来说相当广泛。如果您自己没有查看代码,并且没有任何东西可以向我们展示,则无法保证我们可以为您提供帮助。

听起来这个服务可能正在使用查询缓存 - 看起来像这样。

<cfquery datasource="CRM" name="testQuery" cachedwithin="#CreateTimeSpan(0,0,30,0)#">
-SQL logic-
</cfquery>

基本上它将查询的结果存储在服务器的内存中。它确实可以帮助减少数据库的压力。他们对此缓存功能设置的时间限制可能比您希望的时间长。

如果您无权访问该代码,这是您首先要询问的问题。

编辑:可能完全不同。

https://docs.oracle.com/cd/E13176_01/bluedragon/621/BlueDragon_621_WL_User_Guide.html#_Toc121303111

来源:

Where ColdFusion (5 and MX) defines a ‘template cache” as a place to holds templates in memory once rendered from source code, BlueDragon has the same notion but refers to this as the “file cache”. In both engines, a template once rendered from source will remain in the cache until the server (or J2EE or .NET web app) is restarted.

The cache size, specified in the Admin Console, indicates how many of these cached templates to keep. It defaults to 60 but that number may need to change for your application, depending on how many CFML templates your application uses. One entry is used for each template (CFM or CFC file) requested.

It’s very important to understand that this is not caching the OUTPUT of the page but rather the rendering of the template from source into its internal objects. One cached instance of the template is shared among all users in the application.

As in ColdFusion, once the file cache is full (for instance, you set it to 60 and 60 templates have been requested), then the next request for a template not yet cached will force the engine to flush the oldest (least recently used) entry in the cache to make room. Naturally, if you set this file cache size too low, thrashing in the cache could occur as room is made for files only to soon have the flushed file requested again.

听起来您可能必须重新启动 ColdFusion 应用程序或清除 CFAdmin 中的模板缓存。

关于caching - Blue Dragon Coldfusion 服务器缓存问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35222773/

24 4 0
文章推荐: javascript - jquery比较2个整数
文章推荐: ssh - 对具有 sudo 访问权限的非 root 用户使用 Knife 独奏,无需密码
文章推荐: javascript - Three.js 中程序生成的凹凸贴图或镜面贴图?
文章推荐: asp.net - and ? 之间的区别