• Welcome to Simple Machines Community Forum. Please login or sign up.
October 26, 2021, 02:59:14 AM

News:

Want to get involved in developing SMF, then why not lend a hand on our github!


[2.0.11]APC Multiple keys due to filemtime

Started by nend, February 23, 2016, 06:47:20 PM

Previous topic - Next topic

nend

Checking APC while optimizing my cache routine for Pretty Urls, I noticed I am getting allot of extra caches due to filemtime in the key generation in Load.php.

I am unsure what to make of it but it looks like the file times aren't the same on each of the servers in the grid and this is causing different keys for the same cache depending on which server is processing the script at the time.

In the past I thought this was being caused by each server having their own APC memory but it looks like this memory is synced between the grid and the caches inconsistencies that I have experienced are easily fixable by changing the way the keys are generated.

Advertisement: