Does onebox gem cache the generic urls?

I am using onebox gem. From my testing I see that the generic urls do not goes into cache (Redis in my case) is this by design or I am doing something wrong?

This is tricky, I am not sure this is the right place for “generic onebox” gem questions.

I am not sure what the correct desired default for the gem here is @techAPJ ?

1 Like

Leaving the cache to the “user” of the gem allows for a more fine-grained control over what and how long things should be cached.

If the cache was hidden inside the gem, then it might lead to onebox bugs hard to diagnose due to caching issues.


Yeah we have a “caching” system inside onebox I kind of want to rip out. Let the consumers decide how and what to cache.


I agree with @zogstrip.

It’s on my low-priority list to rid onebox from moneta dependency. Will bump it on my list.


Onebox no longer has native caching as of this commit:

I’ll deploy the changes here on meta early next week.