thoughtco / statamic-cache-tracker

12 stars 2 forks source link

Unset md5'd url #6

Closed simonerd closed 4 months ago

simonerd commented 4 months ago

In L63 of the Manager the data of the to-be-invalidated url is supposed to be unset from the $storeData array via unset($storeData[$url]);.

However in L18 the urls are added not with the URL as the array key, but the md5'd URL. Hence, the data is never unset. In L63 that would mean using the $key var instead: unset($storeData[$key]);. This should properly unset the data from the array, before it is stored in the cache again.

ryanmitchell commented 4 months ago

Great spot, thank you!