The template compilere generates an executable python file. This python file is placed into the template cache directory. Whenever the template this caching file was created from is used pyTemple tries to execute the python file generated earlier. By doing this resource intensive compiling is skipped.
There are three different cache modes.
You may use these modes with the recompile parameter for the TplTemplate constructor.
If you want to remove all cached files you can either directly remove all contents of the template cache directory or you can use TplEngine.delete_cached_files() and TplEngine.delete_cached_file(file_name). This is quite useful if you want to provide your customers an user interface to remove cached files so they can create their own template.
See About this document... for information on suggesting changes.