bluehost / endurance-page-cache

Other
25 stars 12 forks source link

Address array reindexing #81

Closed 0aveRyan closed 4 years ago

0aveRyan commented 4 years ago

Because we're using array_unique() and array_filter() the numerical index is thrown off and when it's written to JSON, the keys get written.

By running through array_values() this re-indexes the array starting at 0 and going up sequentially such that when it gets written to JSON, only the values are used.