ShelbyTV / shelby_gt

Rails API services for Shelby GT
2 stars 0 forks source link

Couldn't invalidate/clear RABL cache on v1/roll/featured #173

Closed iceberg901 closed 11 years ago

iceberg901 commented 11 years ago

I had to turn off the rabl caching on this route because it was not returning the current contents of the roll.yml file.

An hour's worth of poking around at rabl and Rails documentation and playing around in the console did not enable me to clear the cache to my satisfaction.

In order to use this caching, we need to either have a better caching strategy (the cache key we were using NEVER changed so the only way the cache could have been reset was manually, AKA we could have NEVER updated the results coming out of this route) or we need to figure out a back door to clear the cache on the dev side when necessary.

iceberg901 commented 11 years ago

Fixed the caching issues a long time ago and re-enabled the caching. The real problem, though, was that we were filtering SettingsLogic settings in a way that was modifying them for the rest of the Rails run. Fixed that too.