File tree 1 file changed +1
-20
lines changed
powershell-adapter/psDscAdapter
1 file changed +1
-20
lines changed Original file line number Diff line number Diff line change @@ -80,32 +80,13 @@ function Invoke-DscCacheRefresh {
80
80
# if there is nothing in the cache file - refresh cache
81
81
$refreshCache = $true
82
82
" Filtered DscResourceCache cache is empty" | Write-DscTrace
83
- }
84
- else
85
- {
86
- " Checking cache for stale entries" | Write-DscTrace
87
-
88
- foreach ($cacheEntry in $dscResourceCacheEntries ) {
89
- # "Checking cache entry '$($cacheEntry.Type) $($cacheEntry.LastWriteTimes)'" | Write-DscTrace -Operation Trace
90
-
91
- $cacheEntry.LastWriteTimes.PSObject.Properties | ForEach-Object {
92
-
93
- if (-not ((Get-Item $_.Name ).LastWriteTime.Equals([DateTime ]$_.Value )))
94
- {
95
- " Detected stale cache entry '$ ( $_.Name ) '" | Write-DscTrace
96
- $refreshCache = $true
97
- break
98
- }
99
- }
100
-
101
- " Filtered DscResourceCache cache is empty" | Write-DscTrace
102
83
}
103
84
else
104
85
{
105
86
" Checking cache for stale entries" | Write-DscTrace
106
87
107
88
foreach ($cacheEntry in $dscResourceCacheEntries ) {
108
- " Checking cache entry '$ ( $cacheEntry.Type ) $ ( $cacheEntry.LastWriteTimes ) '" | Write-DscTrace - Operation Trace
89
+ # "Checking cache entry '$($cacheEntry.Type) $($cacheEntry.LastWriteTimes)'" | Write-DscTrace -Operation Trace
109
90
110
91
$cacheEntry.LastWriteTimes.PSObject.Properties | ForEach-Object {
111
92
You can’t perform that action at this time.
0 commit comments