pf » Counting files
September 15, 2004
Counting files
In order to set the Maximum number of cached templates setting in ColdFusion MX Administrator, you need to know how many CFM files you have on your server. An easy way to find this out on Unix is by running the find command and piping it with grep -c (to count the number of matches) for example:
find /web/root | grep -c \.cfm$
The result will be the number of cfm files you have in your web root.ls
Trackback Address: 162/279C9DDE3DE2469B75DB314D1F75C8AB
Comments
On 09/15/2004 at 7:06:57 PM MDT Cameron Childress wrote:
1
I wonder if it would also be good to add <pre>find /web/root | grep -c \.cfc$</pre> (CFCs) to that total, then round up?
On 09/15/2004 at 11:31:13 PM MDT Pete Freitag wrote:
2
Good point, I would assume that CFCs are part of the template cache as well, but I don't know for sure.
On 09/16/2004 at 1:14:38 AM MDT sporter wrote:
3
// counts .cfc and .cfm files, case insensitve // only counts regular files (not directories) // find /web/root -type f -iname "*.cf[cm]" | wc -l
On 06/15/2005 at 8:16:31 AM MDT Anonymous wrote:
4
<h1>You may find it interesting to visit some helpful info dedicated to... </h1>
- CFSCRIPT Cheatsheet
- 3 New Image Effects for ColdFusion 8
- Googlebot to Submit Web Forms
- ColdFusion 8 Update 1 Fixes some Image Processing Quirks
- 10 Most Useful Image Functions in ColdFusion 8
- Speaking at NYC CFUG This Week
- Adobe AIR Tutorial for HTML / JavaScript Developers
- INFORMATION_SCHEMA Support in MySQL, PostgreSQL
Subscribe to my RSS Feed:
RSS
RSS
add to del.icio.us
Pete Freitag is a software engineer, and web developer located in










