Difference between revisions of "Cacheman.m"

From Spinach Documentation Wiki
Jump to: navigation, search
m (Add missing Version/authors metadata and remove raw author emails)
Line 5: Line 5:
 
==Syntax==
 
==Syntax==
  
−
cacheman(spin_system) %#NHEAD
+
    cacheman(spin_system)
  
 
==See also==
 
==See also==

Revision as of 16:33, 5 June 2026


Cache management heuristics. Do not call directly - this function is automatically invoked by create.m every time Spinach runs.

Syntax

    cacheman(spin_system)

See also

propagator caching


Description

Looks after the scratch folder and prevents it from filling up the disk. The function inspects the /scratch folder in Spinach directory and deletes any files that are older than the threshold (the default is 7 days) specified in the spin_system.tols.cache_mem field.

Version 2.1, authors: Ilya Kuprov