Building a string and loading it means Beancount can never cache any load. It only caches top-level file loads because options in the top-level file can change the semantics of included entries. Instead use load_file as much as possible, and filter entries as needed.
		
			
				
	
	
		
			3 lines
		
	
	
	
		
			96 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			3 lines
		
	
	
	
		
			96 B
		
	
	
	
		
			Text
		
	
	
	
	
	
option "title" "Books from 2018"
 | 
						|
include "../definitions.beancount"
 | 
						|
include "../2018.beancount"
 |