Thanks Mike & Peter! Turning on caching worked and the timestamp was applied. The impression that I got from the docs was that this parameter controlled how often M2 went to disk for the timestamp, and if we left it off, it would do one initial check and then "cache" that timestamp until the app restarted. Keeping caching OFF would have M2 go out to disk at every request, and change the file name if it found that the timestamp changed. I am sure that I was just misreading the docs.
So leaving caching off totally disables the expiry / filename- timestamp management and makes addJavascript() just a basic <script> tag generator right? -Brian On Nov 10, 7:22 pm, "Peter J. Farrell" <[email protected]> wrote: > MikeF said the following on 11/10/2010 04:17 PM:> Sorry Brian missed the > second part of your post ;) > > That's exactly what we do - we leave cacheAssetPaths='true' and every > > time we reinit (part of the deploy process) the cache gets updated. > > > hth > > By default we don't apply the timestamps unless you turn on > cacheAssetPaths to true. The documentation show probably describe this > better. However if you feel like you want to have timestamp on, but not > caching the asset path -- feel free to file a ticket. Definitely > something we can can address in 1.9 if it doesn't break BC. > > The reason why we do it this way is that getting the timestamp involves > a cfdirectory call to the file to get file stat information. As you can > probably see, if we didn't cache this -- it could be tens if not a > hundred file system calls per request. > > If you have cacheAssetPaths to true and there is not timestamp, then > your paths are messed in a manner that we can't find the file on the > file system. > > .Peter -- You received this message because you are subscribed to Mach-II for CFML list. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/mach-ii-for-coldfusion?hl=en SVN: http://svn.mach-ii.com/machii/ Wiki / Documentation / Tickets: http://trac.mach-ii.com/machii/
