Cache : A Generalized Mechanism for Storing and Replaying any Stata Command
In this paper we describe the Stata program cache, which allows for the full output of any Stata command to be cached to disk, enabling easy recovery of command output in the future without the need for re-computation. The cache program interacts with any native Stata or user-written command, allowing for caching of any elements returned by Stata commands, including matrices, scalars, graphs, data and frames, as well as command output itself. This command is useful for improving programming practices and efficiency, particularly in cases where the underlying Stata commands are computationally intensive and slow to run