Does anyone have a fix for this?
Coldfusion is inserting an html comment before any other markup in a
cfcache'd page. This is fine unless you are using IE. IE will go
into quirks mode if the very first line of the page is not the doctype
declaration. Some have suggested to use cfcontent
Use action=clientcache?
On Fri, Jul 16, 2010 at 12:11 PM, Spencer K spencer.4...@yahoo.com wrote:
Hi cfers,
We are considering implementing cfcache on our busy site (CF8), but as I
understand it, CFMX creates a page on disk for every unique set of URL
variables.
So what stops a
...@gmail.com
To: cf-talk cf-talk@houseoffusion.com
Sent: Fri, July 16, 2010 9:34:28 AM
Subject: Re: cfcache security issue?
Use action=clientcache?
On Fri, Jul 16, 2010 at 12:11 PM, Spencer K spencer.4...@yahoo.com wrote:
Hi cfers,
We are considering implementing cfcache on our busy site
and open to such attacks, can anyone
suggest
an efficient and robust page-caching tag that we can use with CF8?
Thanks
From: Brian Kotek brian...@gmail.com
To: cf-talk cf-talk@houseoffusion.com
Sent: Fri, July 16, 2010 9:34:28 AM
Subject: Re: cfcache
You can set the maximum number of cached templates in the CF
Administrator.
I don't think the maximum number of cached templates affects CFCACHE.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/
Fig Leaf Software is a Veteran-Owned Small Business (VOSB)
Yes, I agree. I tried to make that clear with the rest of the comment,
but obviously I didn't. The bit about max number of cached templates
was in there because I wasn't 100% certain that the author was trying
to explicitly cache a rendered html page or if there was a
misunderstanding and he was
We are considering implementing cfcache on our busy site (CF8), but as I
understand it, CFMX creates a page on disk for every unique set of URL
variables.
That's correct.
So what stops a malicious attacker performing an attack where they just flood
a
cached page with unique URLs?
I'm
Spencer,
If by chance your site is using Fusebox, you may want to look into Fusecache
(fusecache.riaforge.comand, yes, a little self-promotional). It basically
just sits on top and uses Memcached (on CF8...CF9 can use Memcached or
EHCache).
I'm just dumb. We were caching in a different directory then the default
(default=cf_root/cache).
cfcache action=flush expireURL=*/view.cfm?id=* directory=/our_cache_dir/
now works. :)
~|
Adobe® ColdFusion® 8 software 8 is
I'm not sure, but if I recall correctly CFCACHE still writes temp files to
the file system and reads them back each time, which doesn't perform very
well under load. Have a look at Ray's scopecache custom tag. I looked around
for it and the only link I could find was in the SVN repo for Blog CFC.
I'm not sure, but if I recall correctly CFCACHE still writes
temp files to the file system and reads them back each time,
which doesn't perform very well under load.
Actually, reading the files from disk does perform quite well under load.
It's creating the files in the first place which is
Yes, Ray's tag also stores things in memory (in fact I think CFACCELERATE
was based on Ray's tag). What I meant to say regarding performance was that
when Brandon (and Ray as well I beleive) testing their in-memory caching
against CFCACHE, the difference in speed was measured in orders of
Now I cannot use cfcache... it will produce
error connection failure
CFCACHE relies on CFHTTP. There are all sorts of reasons why HTTP requests from
the server to itself might not work. My guess is that the server can't resolve
the hostname used to make the requests. You can test this by
Is it possible to cache search results? For example, if
someone puts a keyword Tokyo in our search input box and
clicks go, it retrieves tons of entries. If I add cfcache
action=cache to the action page for the query, it returns
no entries. I should think it would simply retrieve the
That was it! Thank you so much!
Is it possible to cache search results? For example, if
someone puts a keyword Tokyo in our search input box and
clicks go, it retrieves tons of entries. If I add cfcache
action=cache to the action page for the query, it returns
no entries. I should
CFCACHE is server-side. There is nothing that can be done to
explicitly clear the client browser cache via a web page.
Try using something like this:
cfheader name=Expires value=#Now()#
cfheader name=Pragma value=no-cache
which will force the browser to go to the server to get the page,
rather
D, Try using:
meta http-equiv=Refresh content=0; URL=rotating_baby_image_preview.cfm
to force a clientside browser refresh instead.
Hth.
-Original Message-
From: Pete Ruckelshaus [mailto:[EMAIL PROTECTED]
Sent: Friday, January 05, 2007 10:50 AM
To: CF-Talk
Subject: Re: CFcache how
any fix to this? Extremely annoying. Having to schedule a job to
look for new cache files then update the .tmp files just shouldnt have
to be...
On 11/16/05, Jon Block [EMAIL PROTECTED] wrote:
don't call the cached page direct, call another page first, in the new page use
cfhttp to call the
any fix to this? Extremely annoying. Having to schedule a job to
look for new cache files then update the .tmp files just shouldnt have
to be...
On 11/16/05, Jon Block [EMAIL PROTECTED] wrote:
I need help trying to find out how to make my doctype work right with
cfcache. Take a look at the
CFCAHE will only cache entire pages.
If you want to cache portions of a page try cf_turbocache
-Original Message-
From: Brian Peddle [mailto:[EMAIL PROTECTED]
Sent: 01 December 2005 17:10
To: CF-Talk
Subject: CFCACHE
If I have a page with 5 includes lets say and I use CFCACHE on one
As an FYI I ended up using this tag
http://www.electricsheep.co.nz/products/customtags/view.cfm?name=cf_cache
And it has worked perfectly.
-Original Message-
From: Brian Peddle [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 01, 2005 12:10 PM
To: CF-Talk
Subject: CFCACHE
If I have
My understanding is that cfcache is pretty rudimentary actually... the
cache isn't stored until the page finishes loading, then once it's
loaded subsequent request use the cache, so if you have 2 simultaneous
(or overlapping) requests for the same cache, then they'll both build
the page and the
Why even use the file system? You could easily use the persistant scopes as
well. See
well shoot, I could have sworn I blogged it or posted it to by my web site.
But basically, you can write a custom tag so that you can do partial page
caching like so:
cf_cache name=sectionFoo
content
://www.findarticles.com/cf_dls/m0MLU/4_5/99886537/p3/article.jhtml?
term= ]
Created : Jan 9 2004
Last Updated :
History :
Purpose : Allows you to cache partial page content to files
_
From: Raymond Camden [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 08, 2004 9:16 AM
To: CF-Talk
Subject: RE
Why even use the file system? You could easily use the persistant scopes
as
well. See
well shoot, I could have sworn I blogged it or posted it to by my web
site.
But basically, you can write a custom tag so that you can do partial page
caching like so:
cf_cache name=sectionFoo
content
There are already similar custom tags around, like
CF_SuperCache (check the Exchange) or CF_Accelerate:
http://www.bpurcell.org/blog/index.cfm?mode=entryentry=963
Yep, it is apparently a popular idea. ;) I believe the very first example
was in Spectra, with the generatedContentCache tags.
Ah, these do sound like good reasons to employ the file system. The original
tag I based mine on, from the Spectra days, also allowed for file based or
RAM based caching. Probably something I need to add to mine. :) I've also
taken a look at how caching is handled in asp.net, and it is... very...
Do you see any problems with my locking strategy?It's doing an
excellent job on the site, but I'm wondering if there are gotchas I'm
not seeing in my code...
-dov
_
From: Raymond Camden [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 08, 2004 9:40 AM
To: CF-Talk
Subject: RE: CFCACHE
I've also
taken a look at how caching is handled in asp.net, and it is... very...
very... sweet. You have a built-in cache scope that allows you to do
things
like, Make this cached item depend on another, so if the other guy is
cleared, clear me, as well as Call X on removal from cache and
The code I posted actually does what CFCACHE does(at least i think
thats what cfcache does)-- creates a subfolder in each directory through
which it is called.
As long as all my code doesn't lie in the same place on the server, I'm
getting that split-up automatically.
Thanks for the tip,
Did you mention that to the CFMX team when they decided to put hundreds
of class files in a single directory?
-Matt
On Jan 8, 2004, at 12:37 PM, Brandon Purcell wrote:
Be careful when using the filesystem make sure you do not store
hundreds of files in a single directory. I found that the
are in
directories unless the app developers are insane.
Cheers,
barneyb
-Original Message-
From: Matt Liotta [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 08, 2004 10:54 AM
To: CF-Talk
Subject: Re: CFCACHE parts of pages without cfhttp
Did you mention that to the CFMX team when
But CF rarely has to look in that directory. Pretty much only on
server
startup, because the classes are all cached in memory. And the
timestamps
of the class files don't need to be checked (I can't imagine they
didn't
expose this through their ClassLoader), only the source files,
On Thursday, January 8, 2004, at 02:26PM, Matt Liotta wrote:
Have you ever seen an application with so many CF generated
class files that the server can't even handle a request?
Can you expand on this?That must have been one insanely big site.
Can you share some numbers?
Christian
[Todays
What was the server running on, an ipaq?;-)
-DBK
_
From: Christian Cantrell [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 08, 2004 4:51 PM
To: CF-Talk
Subject: Re: CFCACHE parts of pages without cfhttp
On Thursday, January 8, 2004, at 02:26PM, Matt Liotta wrote:
Have you
a connection failure. Do I need to Reboot after
doing that?
Brook
At 01:53 PM 1/8/2004, you wrote:
What was the server running on, an ipaq?;-)
-DBK
_
From: Christian Cantrell [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 08, 2004 4:51 PM
To: CF-Talk
Subject: Re: CFCACHE parts of pages without
Can you expand on this? That must have been one insanely big site.
Can you share some numbers?
There were over 1 million class files in the directory. As you know,
UDFs generate their own class files, so for a large application that is
function heavy a lot of class files are generated.
What was the server running on, an ipaq? ;-)
Take any Windows-based server no matter how powerful and place a lot of
files in a single directory. You will see quickly that it doesn't
matter how powerful the server is if the filesystem doesn't scale. BTW,
this doesn't just affect Windows
Thanxs Dave,
filesystem is the best choice...
Once again thanx all
From: Dave Watts [EMAIL PROTECTED]
Date: Thu, 1 Jan 2004 16:43:08 -0500
To: CF-Talk [EMAIL PROTECTED]
Subject: RE: CFCACHE in Static Pages
we're developing a CMS writing static pages from DB data. No secret
Been fleshing out a similar concept myself to play around with, the only
difference that I am looking at is to have the CMS in a different directory
than the site root and use CFFile to physically create the different files
in the root.I haven't gotten a chance to get beyond the initial theory
and really like it.
Here's the link to the source code:
http://www.sys-con.com/coldfusion/source.cfm?id=254
Tom Nunamaker
-Original Message-
From: C. Hatton Humphrey [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 01, 2004 8:31 AM
To: CF-Talk
Subject: RE: CFCACHE in Static Pages
we're developing a CMS writing static pages from DB data. No secret.
But, for improving performance, we're looking for cache solutions for
that static pages.
Our CMS works like:
- get data from DB
- with cfcontent and cffile create static pages
- every time any data is change(menu or
.
- Original Message -
From: Dave Watts [EMAIL PROTECTED]
Date: Thursday, January 1, 2004 1:43 pm
Subject: RE: CFCACHE in Static Pages
we're developing a CMS writing static pages from DB data. No secret.
But, for improving performance, we're looking for cache
solutions for
that static pages
cfcache creates temp files of the static HTML that is outputted
by a dynamic query, so yes it will be stored on disk and not in
memory. It just avoids the re-quering of data until it is
flushed or refreshed.
Douglas Brown
Email: [EMAIL PROTECTED]
- Original Message -
From: SoW [EMAIL
And if one of these static files is accessed a LOT, there is no way to force
CF to keep that static file in memory to avoid needless disk accesses?
- Original Message -
From: Douglas Brown [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Tuesday, June 25, 2002 2:31 PM
Subject: Re
-
Vancouver Island ColdFusion Users Group
Founder Director
www.cfug-vancouverisland.com
- Original Message -
From: SoW [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Tuesday, June 25, 2002 2:35 PM
Subject: Re: cfcache and memory
25, 2002 2:35 PM
Subject: Re: cfcache and memory
And if one of these static files is accessed a LOT, there is
no way to force
CF to keep that static file in memory to avoid needless disk
accesses?
- Original Message -
From: Douglas Brown [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED
Houk, Gary wrote:
When I try to use cfcache and set the action to cache, I get a message
access denied. If I set it to clientcache, it's fine. What am I
missing here?
cfcache internally uses cfhttp to make a page request and store the
outcome as a file. Apparently the cfhttp returns an
no, not that I am aware of...
-Original Message-
From: Jochem van Dieten [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 09, 2002 3:18 PM
To: CF-Talk
Subject: Re: cfcache
Houk, Gary wrote:
When I try to use cfcache and set the action to cache, I get a
message
access denied. If I set
PM
To: CF-Talk
Subject: Re: cfcache
Houk, Gary wrote:
When I try to use cfcache and set the action to cache, I get a
message
access denied. If I set it to clientcache, it's fine. What am I
missing here?
cfcache internally uses cfhttp to make a page request and store the
outcome as a file
-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 09, 2002 3:36 PM
To: CF-Talk
Subject: RE: cfcache
In addition, it uses CFDirectory and CFFile internally - I'm not sure if
CFCache is immune to tag security settings - is this a shared box, or do
you control
To: CF-Talk
Subject: RE: cfcache
I control it...it's our dev box. I just uploaded a page to our
production server and the page processes fine - with the exception that
it sends the user back to the login screen. I guess this is normal when
using cfcache?! I just started using the tag to do to try
That makes sense Billy, thanks.
- G
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 09, 2002 3:53 PM
To: CF-Talk
Subject: RE: cfcache
To the best of my knowledge, CFCache has to read from the hard drive -
so if the overhead in I/O is greater
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 09, 2002 2:43 PM
To: CF-Talk
Subject: RE: cfcache
I control it...it's our dev box. I just uploaded a page to our
production server and the page processes fine - with the exception that
it sends the user back to the login screen. I guess this is normal
No, I'm pretty sure cfcache stores the pages in memory (RAM).
No, they're stored as text files on the hard drive. When you cache a page on
the server with CFCACHE, CF will create two text files. One is the generated
content of the page, and will have a .tmp extension. The other has a .map
To the best of my knowledge, CFCache has to read from the
hard drive - so if the overhead in I/O is greater than the
processing of the page, you won't see any gains.
CFCACHE does have to read from the hard drive. However, by default, so does
every CF page request, unless you've enabled
Dave Watts wrote:
CFCACHE does have to read from the hard drive. However, by default, so does
every CF page request, unless you've enabled Trusted Cache and have properly
sized your template cache. Even if you've done that, if it takes longer to
read the file from the disk than it does for
... if it takes longer to read the file from the disk
than it does for CF to process the original script,
you're one hell of a coder.
Or you have used a network share to write the cached file
to :)
Leave it to you to find the exception to the rule! Seriously, though, even
then,
Do I need to specify the second flush to flush index.cfm or
will the first flush take care of both index.cfm and
index.cfm?*
1. cfcache action=FLUSH
directory=#FilePath_2#
expireurl=index.cfm?*
2. cfcache action=FLUSH
directory=#FilePath_2#
expireurl=index.cfm
Hi I am using cfcache to cache a page which rarely changes
however i'm finding the page actually takes LONGER to execute.
Looking at my debbuging info the cfcache tag alone actually
takes 327 milliseconds to execute can anyone else confirm the
poor performance of this tag?
Yes, CFCACHE
Thanks!
Kola Oyedeji
Web developer
Macromedia Certified Advanced ColdFusion 5 Developer
ekeda ltd
http://www.ekeda.co.uk
(+44)020-8429-7300
-Original Message-
From: Dave Watts [mailto:[EMAIL PROTECTED]]
Sent: 30 January 2002 17:02
To: CF-Talk
Subject: RE: CFCACHE performance
Should there be any performance differences between viewing a
page that uses CFCACHE vs. viewing the same page output in a
static HTML file created manually?
I thought NOT, but some tests I've run suggest otherwise.
For example, dynamic cfm pages that consistently require 10
seconds
Ok, I think we've resolved the cfcache Connection Failed problem
we were having, so I though I'd pass on how we sorted it out. It's
got quite a bit to do with IP address and I can't guarantee my
explanation will be that great, but here goes...
Our Web Server and ColdFusion server are on the
I'm hoping this is a common enough problem that there's a simple
solution.
I've got a page with cfcache at the top, when I try and view the
page I end up with Connection Failure. When I use cfcache
action=flush I'm fine.
I've seen this a few times when things are fine on our test
At 08:06 PM 3/26/2001 -0800, you wrote:
Hi;
If a template included with cfinclude has a cfcache line, will the
cache tag affect the entire parent page or just the included file?
The entire page. If I remember correctly, if there is more than one cfcache
in the page once the files are included,
to.
Christian Watt
-Original Message-
From: Dave Watts [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 18, 2001 12:26 PM
To: CF-Talk
Subject: RE: cfcache action="flush"
We host a website. We use cfcache cachedirectory="thedir" on
the index-page and the page that
We host a website. We use cfcache cachedirectory="thedir" on
the index-page and the page that views articles based on an
URL.id - simple and easy, and it works nicely.
Ok... Now the customer changes the dynamic content on these
pages and needs to update the cached pages. I first
How do I store menu images in cfcache to make my pages load faster?
CF serves pages and has nothing to do with images (which are handled by the
HTTP server)
It's all down to the browser settings as to whether it reloads the images or
not, or JavaScript of you use 2-state buttons, then again -
A CF application I'm planning is designed to make extensive
use of CFCACHE to improve performance. Recently I heard that
there may be some security implications if this tag is used.
Has anyone had any bad experiences with CFCACHE in a security
context? Any other problems?
There are
I am new to working in a "shared hosting" environment and was wondering
whether there were any "caveats" concerning the cfcache tag?
Doesn't Cold Fusion automatically cache the templates?
Yes CF can cache the templates, but that is just the template itself so it
doesn't have to be read off
Subject: Cfcache "Connection Failure" error!
Any idea what that error means?
CFCACHE uses CFHTTP to retrieve the generated text from the script; if the
CFHTTP operation is unable to get a response from the server, you will get
that error.
Dave Watts, CTO, Fig Leaf Software
PROTECTED]]
Sent: 19 June 2000 17:04
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: Cfcache "Connection Failure" error!
Subject: Cfcache "Connection Failure" error!
Any idea what that error means?
CFCACHE uses CFHTTP to retrieve the generated text from the
sc
Humm, the fact that the page works right without the cache
enable means that the HTTP request is working fine!
The fact that the page works right without CFCACHE means that the server is
able to respond to your browser. If CFHTTP fails, then that's a slightly
different issue; the server, for
C'est un message de format MIME en plusieurs parties.
--=_NextPart_000_015A_01BFDA24.22B49100
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Cfcache "Connection Failure" error!first of all, have you got a 200 =
status code or a redirect ?
-Original Message-
From: Yannick Simon [mailto:[EMAIL PROTECTED]]
Sent: 19 June 2000 18:26
To: [EMAIL PROTECTED]
Subject: Re: Cfcache "Connection Failure" error!
C'est un message de format MIME en plusieurs parties.
--=_NextPart_000_015A_01BFDA24.22B49100
Co
At 03:40 PM 5/20/00 -0400, Levi Wallach wrote:
Ok, here's my dilemma. My site runs of of a very basic fusebox method - one
index page witha bunch of cfcases which include different files based on a
url variable. I would love to use cfcache for one of these pages which has
some intensive
]
Subject: Re: CFCACHE Clear
If you are referring to a page that is caching I would suggest holding the
shift key while you click reload. This forces the browser to request the
page form the server and not from a previously cached copy on your machine.
ss
-Original Message-
From: Gregory
i think that cfcache is able to create as many TMP files as many combination
you may have in the query string of your page ...
- Original Message -
From: "Won Lee" [EMAIL PROTECTED]
To: "cf-talk (E-mail)" [EMAIL PROTECTED]
Sent: Monday, May 15, 2000 4:45 PM
Subject: cfcache
This
78 matches
Mail list logo