> 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
> be
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).
~~~
> 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
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 w
> 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
ly limited 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
> To: cf-talk
> Sent: Fri, July 16, 2010 9:34:28 AM
&g
: cf-talk
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 wrote:
>
> Hi cfers,
>
> We are considering implementing cfcache on our busy site (CF8), but as I
> understand it, CF
Use action="clientcache"?
On Fri, Jul 16, 2010 at 12:11 PM, Spencer K 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 malicious attacker pe
I'm just dumb. We were caching in a different directory then the default
(default=cf_root/cache).
now works. :)
~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://
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
magnitude
> 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
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. R
Thanks Dave.
your guess was right.
> the server can't resolve the hostname used to make the requests. You
> can test this by pinging the hostname in question from the server
> console. If you can't access the server console, you can use CFEXECUTE
> to test this.
after I put my own ip address
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 > action="cache"> to the action page for the query, it returns
>> no entries. I should th
> 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 action="cache"> to the action page for the query, it returns
> no entries. I should think it would simply retrieve the page
D, Try using:
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 to clear browser cache
>
> CFCACHE is s
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:
which will force the browser to go to the server to get the page,
rather than drawing from the browser cache.
On 1/5/07, [EMAIL PROTECTED] <[E
>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 c
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
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
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 incl
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 lat
> 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 fil
> 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.
till get 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
>
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:26 PM, Matt Liotta wrote
On Thursday, January 8, 2004, at 02:26 PM, 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
[To
> 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
s, which 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
>
> D
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
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,
-D
> 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
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-Ta
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...
v
> There are already similar custom tags around, like
> "CF_SuperCache" (check the Exchange) or "CF_Accelerate":
>
> http://www.bpurcell.org/blog/index.cfm?mode=entry&entry=963
>
Yep, it is apparently a popular idea. ;) I believe the very first example
was in Spectra, with the generatedContentCa
> 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:
>
>
> content
>
>
> This cus
rticle.jhtml?
term=
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: CFCACHE parts of pages without
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:
content
This custom tag would store
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. N
urity.
- 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 fo
> 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
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
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
th
AIL PROTECTED]>
Sent: Tuesday, June 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
.com
-
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 2
: Tuesday, June 25, 2002 2:31 PM
Subject: Re: cfcache and memory
> 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.
>
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" <[EMAI
> > ... 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
th
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
> 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 Tr
> 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
exten
>-Original Message-
>From: Houk, Gary [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 exce
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
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 when
using cfcache?! I just started using the tag to
ssage-
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
2: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 it to "clientcache", it's fine. What am I
> missing here?
cfcache internally uses cfhttp t
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
> &qu
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
> 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. directory="#FilePath_2#"
> expireurl="index.cfm?*">
>
> 2. directory="#FilePath_2#"
> expireurl="index.cfm">
If I recall correctly, t
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: CFCA
> 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, CFCA
> 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
> s
Ok, I think we've resolved the "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 same box,
> I'm hoping this is a common enough problem that there's a simple
> solution.
>
> I've got a page with at the top, when I try and view the
> page I end up with "Connection Failure". When I use action="flush"> I'm fine.
>
> I've seen this a few times when things are fine on our test server
>
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 includ
IMHO CFCACHE sucks. It uses a cfhttp request to cache an entire page. First
of all you need to be careful with that because a cfhttp request consumes an
extra thread next to the one being executed on the page containing CFCACHE.
What I did/recommed is creating your own cf_cache solution that write
> 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 ar
>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
> I get a 200 and then later I get:
> Page-Completion-Status: Normal
> Page-Completion-Status: Abnormal
The Page-Completion-Status headers are generated by CF, but it may be the
case that the browser is ignoring them when you browse it yourself manually.
I've never seen CF generate an "Abnormal"
> -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.
>
>
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 ?
> 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
[EMAIL 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?
&g
> 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
http://www.figle
ECTED]
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: Gr
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 Harris <[EMAIL PROTECTED]>
To
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 que
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