well I can say on a apache/linux server.
I can delete the files in templates/compile except for index.html.
Then run clear cache in ubb cp and they get rebuilt.
A swap file (or swap space or, in Windows NT, a pagefile) is a space on a hard disk used as the virtual memory extension of a computer's real memory (RAM).
Having a swap file allows your computer's operating system to pretend that you have more RAM than you actually do.https://kb.iu.edu/d/aagb