Difference between revisions of "Cacheman.m"

From Spinach Documentation Wiki
Jump to: navigation, search
m (Move Description section into pre-Syntax prose)
m (Polish opening prose above Syntax section)
Line 1: Line 1:
 
{{DISPLAYTITLE:cacheman.m}} __NOTOC__
 
{{DISPLAYTITLE:cacheman.m}} __NOTOC__
−
Cache management heuristics. Do not call directly - this function is automatically invoked by [[create.m]] every time ''Spinach'' runs.
+
Cache management heuristics used automatically by [[create.m]] whenever ''Spinach'' runs; the function inspects the /scratch folder in the Spinach directory and removes files older than the threshold specified in spin_system.tols.cache_mem, whose default is 7 days.
−
 
 
−
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]]''
 
  
 
==Syntax==
 
==Syntax==
Line 13: Line 9:
  
 
[[Appendix_F:_expert-level_options#Propagator caching|propagator caching]]
 
[[Appendix_F:_expert-level_options#Propagator caching|propagator caching]]
 +
 +
''Version 2.1, authors: [[Ilya Kuprov]]''

Revision as of 18:15, 5 June 2026

Cache management heuristics used automatically by create.m whenever Spinach runs; the function inspects the /scratch folder in the Spinach directory and removes files older than the threshold specified in spin_system.tols.cache_mem, whose default is 7 days.

Syntax

    cacheman(spin_system)

See also

propagator caching

Version 2.1, authors: Ilya Kuprov