From @melund, one option is to use ast.literal_eval() instead of eval() when loading the cache. This will almost certainly be safer. However, before it is added, we should investigate whether it is faster or slower to do so. Since this is in the startup code path, we should do whatever is faster.
From @melund, one option is to use
ast.literal_eval()instead ofeval()when loading the cache. This will almost certainly be safer. However, before it is added, we should investigate whether it is faster or slower to do so. Since this is in the startup code path, we should do whatever is faster.