php - simple cache feature - retrieve data every hour
<p>I want to set up a simple cache feature with php. I want the script to get data from somewhere, but not to do it on every page view, but only every hour. </p>

<p>I know i can have a cron job that runs a php script every hour.</p>

<p>But I was wondering if this can be achieved without cron, just inside the php script that created the page based on the data fetched (or cached). I'm really looking the simplest solution possible. It doesn't have to be accurate</p>
