• 0

[php] kill the cache?


Question

In PHP, is it possible to kill the cache? i have a script that updates a .txt file depending on what page i am on, when i go to the next page the script updates the txt file but the page is reading the cached so it's regularly showing the text file from the previous page, and not it's new content.

for example.

I go to home

the script updates the text file with the word 'home'

output it to the page

then i go to contact

the script updates the text file with the word 'contact'

output to the page is still 'home' as its showing the cached file

when i hard refresh it changes to 'contact'

i suppose it could be done with any language?

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.