Re: How to check whether cache needs to be refreshed
Re: How to check whether cache needs to be refreshed
- Subject: Re: How to check whether cache needs to be refreshed
- From: Jon Pugh <email@hidden>
- Date: Tue, 14 Aug 2001 20:54:01 -0700
At 9:59 PM -0400 8/14/2001, email@hidden wrote:
>
But I've been fooled by files changing
>
"behind the back" of my script, when the script is deployed to a different
>
machine.
>
My cache script acts like an executive
>
assistant to ListSTAR, but was seriously fooled when I deployed it from the
>
development site to the live site.
This doesn't sound like a cache issue, but instead it's a reinitialization issue. You need to either 1) deploy a clean script which can initialize itself or 2) have the script check to see if it needs to initialize itself because it has moved to a different machine.
In this case, I think the machine and hard disk name would suffice. Of course, a complete backup would foul this, so I would throw in a real time check too. Thus, if the machine and disk names haven't changed, but I haven't run in over a day, then I should reinit, just in case. That sort of thing. It would allow you to cope with moving to a different server or restarting after a backup.
Does that sound sufficient to you? It seems to solve the problem you are describing.
Of course, I also think recompiling would do it, but I presume you are looking for an automated answer. ;)
Jon