- // Try and incremement value in APC cache
- $id = apc_inc( 'squidhtcppurge' );
- if ( $id === false ) {
- // If false, means it didn't work
- // Chances are that means it isn't in the cache
- // Start saving a cached value
- $add = apc_add( 'squidhtcppurge', 1 );
- if ( $add === false ) {
- wfDebugLog( 'htcp', 'Unable to set value to APC cache' );
- $id = 0;
- } else {
- $id = $add;
- }
- }
-