No, there is no cache.

However it depends what you were doing.

The PowerShell ISE is known for odd behavior, or you might have overwritten variables by accident.

Feel free to share the code and will have a look

If you post code, please use the ‘Insert Code’ button. Please and thank you!