Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

So what's so bad about servercache?

Explorer ,
Mar 27, 2009 Mar 27, 2009
Excuse how brief this post is, the forum decided to boot me out mid posting and I lost everything I had written. Long story short, why does the API reference say it's "bad" to use type='servercache' with the <cfcache> tag?
512
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 27, 2009 Mar 27, 2009
> why does the API reference
> say it's "bad" to use type='servercache' with the <cfcache> tag?

I've never used <cfcache> in production, but I would guess it's because if
you can set it to try to cache clientside as well, why wouldn't you? It
potentially saves hits to the server, and it fails seamlessly if the client
can't / won't cache it. There's just very little harm in at least
attempting to cache things on both sides.

Why do you ask?

--
Adam
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 30, 2009 Mar 30, 2009
I was just curious since there was no explanation behind the warning. I'm working on a very slow server that hosts a very big website, and it likes to time out during anything more complicated than a simple query. I've been using my own caching routines using wddx but cfcache looks attractive as a one size fits all solution. I'm more interested in the server side caching because the problems occur when users try to access the server when it's already bogged down and it times out. With things cached thanks to previous visitors things just pop right into place.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 30, 2009 Mar 30, 2009
LATEST
Well, I'll answer my own question:

The request has exceeded the allowable time limit Tag: cfhttp

Really odd. I'm not sure why cfcache relies on cfhttp, but that's the new point of failure. I'll have to go back to using custom caching routines using wddx.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources