Im having this problem guys. In one part of my code I delete an element of the json file
[
{somedata},
{somedata},
{somedata} // deleted
]
after deleted and fwrite or file_put_contents I redirect to another script In that script I get the file.json data, but it is like returning the file data cached with that element not deleted yet. only when I press f5 it returns the new data.json file with that item delete.
Anyone knows how can I fix this issue. Ideas.
regards.