diff options
author | Thom May <thom@may.lt> | 2016-08-02 09:07:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-02 09:07:57 +0100 |
commit | e5fa9785cebfdbe233e8e465c67f07d63e4c8b55 (patch) | |
tree | de18f9ef4753b66d4272febf9f82ba62e25c714c /lib/chef/chef_fs/chef_fs_data_store.rb | |
parent | 3c658aefc5f683969b91a369a04d5095d64b768d (diff) | |
parent | 9e12616c410175a425552240d37a35d3b2498c24 (diff) | |
download | chef-e5fa9785cebfdbe233e8e465c67f07d63e4c8b55.tar.gz |
Merge pull request #5154 from chef/tm/cache_invalidate
Invalidate the file system cache on deletion
Diffstat (limited to 'lib/chef/chef_fs/chef_fs_data_store.rb')
-rw-r--r-- | lib/chef/chef_fs/chef_fs_data_store.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/chef_fs/chef_fs_data_store.rb b/lib/chef/chef_fs/chef_fs_data_store.rb index aa5a6d5a69..6b3e830f8d 100644 --- a/lib/chef/chef_fs/chef_fs_data_store.rb +++ b/lib/chef/chef_fs/chef_fs_data_store.rb @@ -458,6 +458,7 @@ class Chef # We want to delete just the ones that == POLICY next unless policy.name.rpartition("-")[0] == path[1] policy.delete(false) + FileSystemCache.instance.delete!(policy.file_path) found_policy = true end raise ChefZero::DataStore::DataNotFoundError.new(path) if !found_policy |