Program Caching and Verification #1091
-
Hey all, I'm wondering if there is a best practice around caching of the program and/or if there is a way to check the program against the source Cel Expression to see if it has changed and needs to be generated again? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @Nalum, We haven't implemented support for this, but your best bet would be to create a checksum of the source expression to store alongside the compiled Cheers, -Tristan |
Beta Was this translation helpful? Give feedback.
Hi @Nalum,
We haven't implemented support for this, but your best bet would be to create a checksum of the source expression to store alongside the compiled
cel.Program
. If you had a file monitor or polling task, you could validate the checksum of the proposed expression against the one which was cached. If they're different, then you'd want to recompile the program.Cheers,
-Tristan