Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cfapplication caching

Status
Not open for further replies.

DeZiner

Programmer
May 17, 2001
815
US
When I make changes to Application.cfm, the changes are not becoming active on the site.

I've checked for other Application files on the server, and the others are only found in CFIDE/administrator folders.

I've added some code I found here at TT:
<META http-equiv=&quot;Expires&quot; content=&quot;Now&quot; >
<META http-EQUIV=&quot;pragma&quot; CONTENT=&quot;no-cache&quot;>
<CFHEADER Name=&quot;Expires&quot; Value=&quot;#Now()#&quot;>
<CFHEADER NAME=&quot;cache-control&quot; VALUE=&quot;no-cache, no-store, must-revalidate&quot;>

This did not help. How can I stop application.cfm from caching and changes to take affect immediately. The caching options in cfadmin panel is all default. I have only changes the debugging settings.

BTW, never before have I had this problem.
ColdFusion Server Developer 6,1,0,63958

DeZiner
Never be afraid to try something new.
Remember that amateurs built the Ark.
Professionals built the Titanic
 
Really? That sounds pretty odd. I've never had an Application.cfm cache before either.

Are you absolutely positive that you're editing the file you expect (right directory/path and correct name - Application.cfm vs. application.cfm)??



-Carl
 
When you say &quot;When I make changes to Application.cfm, the changes are not becoming active on the site.&quot; - What changes are you referring to?

In other words, if you make changes to cf code and you don't see the affect of the code on the client side, then I'd have to agree that that is very weird.

But if you have embedded HTML on your application.cfm page and do not notice a change on the client side, my first thought is that the caching is ocurring on the client side.

If you haven't already figured out your issue by the time this msg has been posted, try flushing your browser cache and see what happens.

 
Thanks for the replies. I wish I bookmarked the source, but I didn't, of where I found my answer.

I am setting application variables in application.cfm, then referencing in my templates as #application.whatever#. When I would change the value in the application.cfm, the change did not come out in the template.

A bit of info I left out was, I am calling the application variables within custom tags. Apparently, this can cause wierd issues. So I changed the variables to request.whatever and call #request.whatever# in the template within the custom tag. This resolved all issues. Any change now to the value, relects immediately within the template.

Again, thanks for repies!

DeZiner
Never be afraid to try something new.
Remember that amateurs built the Ark.
Professionals built the Titanic
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top