Show
Ignore:
Timestamp:
05/13/2008 12:39:10 AM (22 months ago)
Author:
peterfarrell
Message:

- Removed use of UUID for cache handler id and used a pseudo-random generator to generate the id (about 2,000% faster than using UUID)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • framework/1-6-0/trunk/framework/CacheManager.cfc

    r780 r781  
    6767        </cffunction> 
    6868         
    69         <cffunction name="loadCacheHandlerFromXml" access="public" returntype="uuid" output="false" 
     69        <cffunction name="loadCacheHandlerFromXml" access="public" returntype="string" output="false" 
    7070                hint="Loads a cache handler from Xml."> 
    7171                <cfargument name="configXML" type="string" required="true" /> 
     
    172172 
    173173                <!--- Add the handler ---> 
    174                 <cfset variables.handlers[handlerId] = arguments.cacheHandler /> 
     174                <cfset StructInsert(variables.handlers, handlerId, arguments.cacheHandler, false) /> 
    175175                 
    176176                <!--- Register the handler by handler type --->