lib/openwfe/engine/file_persisted_engine.rb in openwferu-0.9.15 vs lib/openwfe/engine/file_persisted_engine.rb in openwferu-0.9.16

- old
+ new

@@ -60,19 +60,19 @@ # Overrides the method already found in Engine with a persisted # expression storage # def build_expression_storage () - init_service(S_EXPRESSION_STORAGE, YamlFileExpressionStorage) + init_service S_EXPRESSION_STORAGE, YamlFileExpressionStorage end # # Uses a file persisted error journal. # def build_error_journal () - init_service(S_ERROR_JOURNAL, YamlErrorJournal) + init_service S_ERROR_JOURNAL, YamlErrorJournal end end # # An engine with a cache in front of its file persisted expression storage. @@ -86,10 +86,10 @@ protected def build_expression_storage () - @application_context[:expression_cache_size] = 1000 + @application_context[:expression_cache_size] ||= 1000 init_service( S_EXPRESSION_STORAGE, CacheExpressionStorage)