[phpa] Re: Shm cache check

  • From: "Nick Lindridge" <nick@xxxxxxxxxxxxxxxxxxxxx>
  • To: <phpa@xxxxxxxxxxxxx>
  • Date: Tue, 7 May 2002 14:57:09 -0000 ()


> Hi Nick,
>
>
> you say :
>  "Pruning is triggered by a page request, and performed after the page
> request has completed."
>
> and
>
> "
> ; Sets the interval between checks of the shared memory cache for
> ; rebalancing.
> ; A purely numeric interval is in seconds, otherwise append one of 's',
> 'm', ; 'h', 'd' to specify a period in seconds, minutes, hours or days.
> ; e.g 10m is ten minutes, 3h is three hours.
> ; Defaults to 5 minutes
>
> phpa.shm_stats_check_period = 5m"
>
>
> How a check of the shm cache is triggered? by a page request too? or by
> a  process like "cron" for example?

Yes, this is also after a page request. As part of the tidyup procedure,
having completed script execution and sent script output, PHPA checks to see
whether it's time to examine the cache for expired entries. The term
stats_check is an old term from an earlier version when script expiry was
based on more complex statistics than a simple time-to-live value.

So, even though the period is 5 minutes, once the 5 minutes are up, if it's
an hour before the next page request then it will actually have been 1 hour
and 5 minutes between checking the cache.




------------------------------------------------------------------------
  www.php-accelerator.co.uk           Home of the free PHP Accelerator

To post, send email to phpa@xxxxxxxxxxxxx
To unsubscribe, email phpa-request@xxxxxxxxxxxxx with subject unsubscribe


Other related posts: