diff --git a/src/inference/src/dev/core_impl.cpp b/src/inference/src/dev/core_impl.cpp index baebf70fdd2cfe..3764fbad1522c5 100644 --- a/src/inference/src/dev/core_impl.cpp +++ b/src/inference/src/dev/core_impl.cpp @@ -206,8 +206,10 @@ void clean_batch_properties(const std::string& device_name, ov::AnyMap& config, } } -static const auto core_properties_names = - ov::util::make_array(ov::cache_dir.name(), ov::enable_mmap.name(), ov::force_tbb_terminate.name()); +static const auto core_properties_names = ov::util::make_array(ov::cache_dir.name(), + ov::enable_mmap.name(), + ov::force_tbb_terminate.name(), + ov::cache_model_path.name()); static const auto auto_batch_properties_names = ov::util::make_array(ov::auto_batch_timeout.name(), ov::hint::allow_auto_batching.name()); diff --git a/src/inference/tests/functional/caching_test.cpp b/src/inference/tests/functional/caching_test.cpp index be08f8a224f77b..32669f40d461af 100644 --- a/src/inference/tests/functional/caching_test.cpp +++ b/src/inference/tests/functional/caching_test.cpp @@ -3043,7 +3043,10 @@ TEST_P(CachingTest, import_from_cache_model_by_custom_model_rt_info) { }); MkDirGuard guard(m_cacheDir); EXPECT_CALL(*mockPlugin, compile_model(_, _, _)).Times(0); - EXPECT_CALL(*mockPlugin, compile_model(A&>(), _)).Times(1); + EXPECT_CALL( + *mockPlugin, + compile_model(A&>(), Not(Contains(Key(ov::cache_model_path.name()))))) + .Times(1); EXPECT_CALL(*mockPlugin, import_model(A(), _, _)).Times(1); EXPECT_CALL(*mockPlugin, import_model(A(), _)).Times(1); EXPECT_CALL(*mockPlugin, import_model(A(), _, _)).Times(0);