Back out "Add caching for inside torch.compile.disable function to avoid unnecessary recompilation. (#160934)"
Summary:
root cause candidate for S555513
bypass-github-export-checks "https://github.com/pytorch/pytorch/pull/160934 reverted here when this diff's tests passed"
Reviewed By: anijain2305
Differential Revision: D81236016
fbshipit-source-id: 56d77953f6920fee02a8e745eb6658ea83c5234f