|
53 | 53 | <cfargument name="typename" required="true" type="string"> |
54 | 54 |
|
55 | 55 | <cfif isCacheable(typename=arguments.typename,action="read")> |
56 | | - <cfreturn cachePull("#rereplace(application.applicationname,'[^\w\d]','','ALL')#_#arguments.typename#_#arguments.objectid#") /> |
| 56 | + <cfreturn cachePull("#rereplace(application.applicationname,'[^a-zA-Z\d]','','ALL')#_#arguments.typename#_#arguments.objectid#") /> |
57 | 57 | <cfelse> |
58 | 58 | <cfreturn structnew() /> |
59 | 59 | </cfif> |
|
99 | 99 | hashKey="#arguments.hashKey#" |
100 | 100 | ) /> |
101 | 101 |
|
102 | | - <cfset stCacheWebskin = cachePull("#rereplace(application.applicationname,'[^\w\d]','','ALL')#_#webskinTypename#_#arguments.objectid#_#dateformat(arguments.datetimeLastUpdated,'yyyymmdd')##timeformat(arguments.datetimeLastUpdated,'hhmmss')#_#arguments.template#_#hash(stResult.webskinCacheID)#") /> |
| 102 | + <cfset stCacheWebskin = cachePull("#rereplace(application.applicationname,'[^a-zA-Z\d]','','ALL')#_#webskinTypename#_#arguments.objectid#_#dateformat(arguments.datetimeLastUpdated,'yyyymmdd')##timeformat(arguments.datetimeLastUpdated,'hhmmss')#_#arguments.template#_#hash(stResult.webskinCacheID)#") /> |
103 | 103 |
|
104 | 104 | <cfif not structisempty(stCacheWebskin) AND |
105 | 105 | structKeyExists(stCacheWebskin, "datetimecreated") AND |
|
611 | 611 | hashKey="#arguments.stCurrentView.hashKey#" |
612 | 612 | ) /> |
613 | 613 |
|
614 | | - <cfset cacheAdd("#rereplace(application.applicationname,'[^\w\d]','','ALL')#_#arguments.typename#_#arguments.objectid#_#dateformat(arguments.datetimeLastUpdated,'yyyymmdd')##timeformat(arguments.datetimeLastUpdated,'hhmmss')#_#arguments.template#_#hash(stCacheWebskin.webskinCacheID)#",stCacheWebskin,stCacheWebskin.cacheTimeout*60) /> |
| 614 | + <cfset cacheAdd("#rereplace(application.applicationname,'[^a-zA-Z\d]','','ALL')#_#arguments.typename#_#arguments.objectid#_#dateformat(arguments.datetimeLastUpdated,'yyyymmdd')##timeformat(arguments.datetimeLastUpdated,'hhmmss')#_#arguments.template#_#hash(stCacheWebskin.webskinCacheID)#",stCacheWebskin,stCacheWebskin.cacheTimeout*60) /> |
615 | 615 |
|
616 | 616 | <cfreturn true /> |
617 | 617 |
|
|
626 | 626 | <cfargument name="template" required="true" type="string"> |
627 | 627 |
|
628 | 628 | <cfset var i = "" /> |
629 | | - <cfset var regex = "^#rereplace(application.applicationname,'[^\w\d]','','ALL')#_#arguments.typename#_#arguments.objectid#_[^_]+_#arguments.template#" /> |
| 629 | + <cfset var regex = "^#rereplace(application.applicationname,'[^a-zA-Z\d]','','ALL')#_#arguments.typename#_#arguments.objectid#_[^_]+_#arguments.template#" /> |
630 | 630 | <cfset var aRemove = arraynew(1) /> |
631 | 631 |
|
632 | 632 | <cfif not isdefined("application.objectbroker.#arguments.typename#")> |
|
653 | 653 |
|
654 | 654 | <cfif isCacheable(typename=arguments.typename,action="write") and structkeyexists(arguments,"key")> |
655 | 655 | <cfset cacheAdd( |
656 | | - "#rereplace(application.applicationname,'[^\w\d]','','ALL')#_#arguments.typename#_#arguments.key#", |
| 656 | + "#rereplace(application.applicationname,'[^a-zA-Z\d]','','ALL')#_#arguments.typename#_#arguments.key#", |
657 | 657 | arguments.stObj, |
658 | 658 | application.objectbroker[arguments.typename].timeout |
659 | 659 | ) /> |
|
737 | 737 | </cfif> |
738 | 738 |
|
739 | 739 | <!--- Remove the object itself and it's webskins ---> |
740 | | - <cfset key = "#rereplace(application.applicationname,'[^\w\d]','','ALL')#_#arguments.typename#_#i#" /> |
| 740 | + <cfset key = "#rereplace(application.applicationname,'[^a-zA-Z\d]','','ALL')#_#arguments.typename#_#i#" /> |
741 | 741 | <cfset cacheFlush(key) /> |
742 | 742 |
|
743 | 743 | </cfloop> |
|
0 commit comments