mirror of
				https://github.com/TitanEmbeds/Titan.git
				synced 2025-11-03 23:37:09 +01:00 
			
		
		
		
	Moved cache back to the database
This commit is contained in:
		@@ -9,10 +9,9 @@ import string
 | 
				
			|||||||
import hashlib
 | 
					import hashlib
 | 
				
			||||||
 | 
					
 | 
				
			||||||
cache_opts = {
 | 
					cache_opts = {
 | 
				
			||||||
    'cache.type': 'file', #'ext:database',
 | 
					    'cache.type': 'ext:database',
 | 
				
			||||||
    'cache.data_dir': 'tmp/cachedata',
 | 
					    'cache.url': config["database-uri"],
 | 
				
			||||||
    'cache.lock_dir': 'tmp/cachelock',
 | 
					    'cache.sa.pool_recycle': 250,
 | 
				
			||||||
    #'cache.url': config["database-uri"],
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
cache = CacheManager(**parse_cache_config_options(cache_opts))
 | 
					cache = CacheManager(**parse_cache_config_options(cache_opts))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user