Class | OpenWFE::CachedFilePersistedEngine |
In: |
lib/openwfe/engine/file_persisted_engine.rb
|
Parent: | FilePersistedEngine |
An engine with a cache in front of its file persisted expression storage.
Remember that once you have added the participants to a persisted engine, you should call its reload method, to reschedule expressions like ‘sleep’, ‘cron’, … But if you do it before registering the participants you‘ll end up with broken processes.
# File lib/openwfe/engine/file_persisted_engine.rb, line 89 89: def build_expression_storage () 90: 91: @application_context[:expression_cache_size] ||= 1000 92: 93: init_service( 94: S_EXPRESSION_STORAGE, 95: CacheExpressionStorage) 96: 97: #init_service( 98: # S_EXPRESSION_STORAGE + ".1", 99: # YamlFileExpressionStorage) 100: init_service( 101: S_EXPRESSION_STORAGE + ".1", 102: ThreadedYamlFileExpressionStorage) 103: end