Clearing the cache on the Coldfusion Production server

I use CFMX, and there is a problem (the variable "yy" is undefined in "yyfiling"), which is a test plug at the production stage.

I am promoting patches, but they do not seem to appear on the server.

I want to resort to flushing the server cache so that my promoted code can take effect.

The CFAdmin creation template has been cached (Trusted Cache is enabled), so want to disable Trusted Cache and clear the template cache. Must do it as soon as possible.

So it was interesting that this would affect the main site? ANY PRECAUTIONS?

+4
source share
4 answers

You can programmatically clear the ColdFusion template cache for all templates or a specific template. Ray Camden registered him here:

Removing individual files from the template cache using AdminAPI http://www.coldfusionjedi.com/index.cfm/2008/6/19/Clearing-individual-filesfolders-from-ColdFusion-templates-cache

ColdFusion API API and template cache http://www.coldfusionjedi.com/index.cfm/2007/6/7/ColdFusion-8-Admin-API-and-Trusted-Cache

+2
source

I would suggest doing this during the development process and see if anything happens. This is where good development (or better yet, QA) is suitable.

+1
source

USE SVN / GIT, save an existing copy of the code before you do this. If your new code contains even more critical errors, return to the existing one immediately.

0
source

I always clear the cache. The only difference you'll see is that the first time you request a coldfusion template, it will add a bit of time to the request due to the coldfusion compilation that should run under the hood. it will be a one-time hit.

Do not be afraid.

0
source

All Articles