Adam Cameron
public void function $addToCache(
// ...
) {
// ...
for (local.key in application.wheels.cache[arguments.category]) {
if (Now() > application.wheels.cache[arguments.category][local.key].expiresAt) {
Seems to me like there's no guarantee that application.wheels.cache[arguments.category][local.key]
will still be there when you come to assume that it does.Adam Cameron
Adam Cameron
application.wheels.cache
directly in implementation code is.. limiting. application.wheels.cache
should be wrapped in an adapter, and an instance of the adapter should be passed to the caching service. The current implementation is a bit... CF5.Adam Cameron