The naming of the function seems off to me.

The no in `_ting_cache_no_relations()` implies without relations but there is a parameter `$with_relations` which is used to indicate whether there are relations or not. It does not even default to   `FALSE`.