Intro to Caching

Comments

To download the sample code, click on 'Show Menu' and click on the paper clip.

Posted By: Daria On: 06/02/10 5:13 PM

Thanks, waiting for more

Posted By: صور الكريسماس On: 12/19/11 11:24 AM

Add Comment

Comments have been closed.

Transcript

no image

Slide Text

Slide Notes


Slide 1


Intro to Caching
Daria Norris
NCDevCon
May 22, 2010

no notes exist for this slide

Slide 2


Why Me?
Working with ColdFusion since 1996
Independent Contractor 13 yrs
Currently work for Free Library of Philadelphia

no notes exist for this slide

Slide 3


Why Do We Cache?
Performance

no notes exist for this slide

Slide 4


Caching Tools in ColdFusion
Persistent scopes
<cfquery> with cachedwithin or cachedafter
<cfcache>
Cache within an object (CFC)
CF9's enhanced caching functions

no notes exist for this slide

Slide 5


Persistent Scopes
Session
Application
Client
Server

no notes exist for this slide

Slide 6


Query Caching
<cfquery>
cachedAfter=
cachedWithin=

no notes exist for this slide

Slide 7


Page Caching
<cfcache>
timespan=
Caches entire page
Cache managed by URL variables
Enhanced for CF9

no notes exist for this slide

Slide 8


Object Caching
CFCs created as objects
Usually cached into a persistent scope
Typically called Services

no notes exist for this slide

Slide 9


Fragment Caching
cachePut()
cacheGet()
cacheRemove()
cacheGetAllIds()
cacheGetMetadata()
cacheGetProperties()
cacheSetProperties()

no notes exist for this slide

Slide 10


Finding the Optimal Caching Plan
Cache as close to final output as possible
Cache to static files when possible
Monitor your cache size

no notes exist for this slide

Slide 11


Resources
Ray Camden
http://www.coldfusionjedi.com/
Rob Brooks-Bilson
http://www.brooks-bilson.com/
Adobe
http://help.adobe.com/

no notes exist for this slide