NOTE: This plugin is compatible with FarCry 7.1.0 and over.
Redis is available under LGPL and compatible with the open source and commercial licenses of FarCry Core
Redis replaces the default object and webskin caching mechanism in Core with an external redis server. This is an excellent approach for moving memory load out of ColdFusion and off the application server. A key benefit for sites running in high availability environments is that all the application servers in the cluster can be made to share a central cache.
This plugin also works with Amazon ElastiCache.
- Install redis
- Add this plugin to the project
- Restart your application
- Open the "Redis" config
- Copy in your server details, in the form "your.redishost.com:11211" (if you don't understand the other settings, it is safe to leave the default values)
- Save the config
- Restart the application
Testing / Debugging
The plugin logs status and errors to "redis.log" using cflog. This will sometimes have information pertaining to the plugin's ability to access the redis server.
The redis reports are accessible in the Webtop under Admin -> General Admin -> Application Settings -> Redis Summary.
The main screen has information about the general health of the redis servers (or clusters, in the case of ElastiCache). You can drill down to a specific server or application by clicking "overview" or "this application".
NOTE: the information provided on the drill-down pages is aquired via an undocumented feature of redis which the developers are planning to deprecate.
NOTE: generating the drill-down reports can have a performance impact on the application and redis servers. If you have more than 100 000 items in your cache, you may find that the reports time out.
Updating or restarting the application does not clear the cache. See the following sections for the different ways to invalidate cache data.
Content type data is cache keys include the last schema change date for that type. Deploying schema updates automatically causes the app to stop using previous cache items.
NOTE: other servers will conetinue to use the old cache items until you update the application to refresh the schema change dates. This allows you to deploy changes on one server without breaking the site on another unupdated server.
This option, in the Tray, invalidates every key used by the site, and will affect every server using the same Redis server.
The Redis page in the webtop (Admin -> General Admin -> Application Settings -> Redis Summary) has options for manually triggering invalidation either across the entire application or for specific sections of the cache.