FarCry 4.0 (currently still in Beta) has a new feature called an Object Broker. It's essentially a caching tool for object types.
When used you set a numerical limit on it (for server memory reasons) where when the limit is reached it acts as "newest in, oldest out".
At the moment activating and using the object broker is undocumented. So for the moment consider this a good starting point :).
To Enable Object Broker
Edit any custom type CFC and add the following two attributes
ColdFISH is developed by Jason Delmore. Source code and license information available at coldfish.riaforge.org
bObjectBroker="true"
1bObjectBroker="true"
and
ColdFISH is developed by Jason Delmore. Source code and license information available at coldfish.riaforge.org
objectBrokerMaxObjects="1000"
1objectBrokerMaxObjects="1000"
(where 1000 is the numerical limit you want cached).
To Test Object Broker
- Disable the object broker and turn on CF debugging to see all of the queries
- Enable the object broker to see how few queries are required.
- Try dumping application.objectbroker to get a look at what's being cached.
Thanks to Mat Bryant (Daemon Internet Consultants) for helping me wrap my brain around some of these features.
There are no comments for this entry.
[Add Comment] [Subscribe to Comments]