1 | Next Page

Caching Enhancements in ColdFusion 9 ? Part 9: Dependent Template Caching

Nov 23, 2009 11:11 PM
Rating: (Total Clicks 0)

Welcome to Part 9 of my series on Caching Enhancements in ColdFusion 9. Today we're going to cover something called dependent template caching. Strange name, I know. If you remember back from Part 7, we said that by default, when you cache a web page or page fragment with the cfcache tag, that page/fragment goes into the cache and is retrieved for any subsequent visits to that page. The same content is returned for everyone. We also covered a method for caching pages based on unique URL parameters such that different versions of the same page (say a product display (translate)

Caching Enhancements in ColdFusion 9 - Part 8: Expiring and Flushing Items in the Template Cache

Nov 21, 2009 4:48 PM
Rating: (Total Clicks 26)

When using the template cache in ColdFusion 9, you have two main options for getting pages and page fragments out of the cache ? time based expiry and flushing. This blog post covers both. You should not that all of the examples here cache full pages. In most cases, the techniques discussed can be applied equally to page fragments. Expiring Items in the Template Cache It's also possible to set expiry periods for items in the template cache. Here, you have two optional parameters built in to the cfcache tag to help you expire pages and fragments from the cache (translate)

Caching Enhancements in ColdFusion 9 - Part 7: Using the Template Cache

Nov 20, 2009 9:35 PM
Rating: (Total Clicks 12)

In Part 5 of this series, we introduced the template cache with a quick example that showed how to cache page fragments. As we mentioned then, the template cache can be used to cache page fragments as well as entire web pages. This post is broken up into three sections that explore the three typical use cases of the template cache: Caching entire wen pages, caching entire web pages with url parameters and caching page fragments. Caching Entire Web Pages To cache an entire web page, simply place a single cfcache tag at the top of you page. Here's an (translate)

Caching Enhancements in ColdFusion 9 - Part 6: Configuring Caches and Working with ehcache.xml

Nov 17, 2009 11:07 PM
Rating: (Total Clicks 12)

In Part 5 of this series, we mentioned that Ehcache could be configured at runtime via ColdFusion code as well as by using an XML configuration file called ehcache.xml. On a Java EE install of ColdFusion 9, you can find the ehcache.xml file located here: /JRun4/servers/servername/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib There are two main sections of the file you need to be concerned with for basic configuration. The first section you should take a look at is the DiskStore configuration: This tag tells Ehcache where it should write cache files if you have the cache configured to overflow to disk or to persist to (translate)

Caching Enhancements in ColdFusion 9 ? Part 5: Getting to Know Ehcache

Nov 16, 2009 6:28 PM
Rating: (Total Clicks 14)

In previous versions of ColdFusion (before ColdFusion 9 that is), there were three built-in mechanisms you could for caching ? persistent variable scopes, query caching and the cfcache tag. As I mentioned in Part 2 of the series, each of these methods has inherent limitations and generally requires a good deal of additional programming to gain any semblance of control over the actual cache ? if that is even possible. In many cases it really isn't practical or even possible to see how much information is stored in one of the aforementioned caching mechanisms. All of this changes with the (translate)

Caching Enhancements in ColdFusion 9 - Part 4: Caching Strategies & Eviction Policies

Nov 8, 2009 4:41 AM
Rating: (Total Clicks 2)

So far in this series, we've covered why you would want to cache, what to cache and when, and basic caching architectures. In part 4 of this series, we're going to talk about caching strategies and eviction policies. A caching strategy is nothing more than an architectural decision on how you're going to manage putting data in and retrieving data from your cache and the corresponding relationship between the cache and your backend data source. There are two main caching strategies you need to be aware of, deterministic and non-deterministic. A non-deterministic caching strategy involves first looking in the cache (translate)

Caching Enhancements in ColdFusion 9 - Part 3: Caching Architectures

Sep 3, 2009 8:52 PM
Rating: (Total Clicks 33)

Welcome to Part 3 in my series on Caching Enhancements in ColdFusion 9. In Part 2, we talked about caching granularity. This time around, were going to spend some time discussing caching architectures. When talking about caching architectures, it's important to understand the type of cache being referred to. Basically, caches come in two flavors: in-process and out-of-process. An in-process cache operates in the same process as its host application server. As I mentioned in Part 1 of this series, the new caching functionality in ColdFusion 9 is based on an implementation of Ehcache. Because Ehcache is an in-process caching (translate)

Caching Enhancements in ColdFusion 9 - Part 2: Caching Granularity

Jul 29, 2009 6:39 PM
Rating: (Total Clicks 28)

In Part 1 of this series, I talked about what caching is and why you would want to consider it as part of your application design. In this post, I'm going to spend some time talking about caching granularity. Caching granularity is just a fancy way of saying "what to cache". Before we go further, let's take a look at various caching opportunities you have when architecting an application: As you can see, there are quite a few places where you can implement caching. For the purposes of our discussion, we're going to focus only on caching at the ColdFusion (translate)

Caching Enhancements in ColdFusion 9 - Part 1: Why Cache

Jul 21, 2009 4:20 PM
Rating: (Total Clicks 23)

One ColdFusion 9 feature I haven't heard much buzz about but I think has the potential to really enhance high performance and large scale ColdFusion applications is caching. ColdFusion has always had caching capability, but more often than not they've been black boxed, giving the developer limited control and visibility over the process. All that changes in ColdFusion 9 with a major overhaul of the cfcache tag. The biggest single enhancement here is the implementation of the popular distributed caching provider Ehcache under the covers. What this means is that ColdFusion now implements one of the most popular and certainly (translate)

More on ColdFusion 9's Virtual File System: Dealing with Directories and Files

Jul 14, 2009 11:55 PM
Rating: (Total Clicks 44)

In a previous entry, I introduced ColdFusion 9's new RAM based virtual file system (VFS). One question that came up over and over again was how long files stored in the VFS persist. That's a pretty straightforward question. The answer, however, isn't quite as simple. Right now, as of the initial public beta of ColdFusion 9, files saved to the VFS persist until server restart. Obviously this isn't an ideal situation in all cases. There are a few items you should consider when working with the VFS in ColdFusion 9 when it comes to file and directory persistence as well (translate)

1 | Next Page