Revert "Commit of various live hacks"
[lhc/web/wiklou.git] / includes / cache / SquidUpdate.php
index 897397e..6b48fa4 100644 (file)
@@ -202,25 +202,10 @@ class SquidUpdate {
                                        throw new MWException( "Invalid HTCP rule for URL $url\n" );
                                }
 
-                               // 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;
-                                       }
-                               }
-
                                // Construct a minimal HTCP request diagram
                                // as per RFC 2756
                                // Opcode 'CLR', no response desired, no auth
-                               $htcpTransID = $id;
+                               $htcpTransID = rand();
 
                                $htcpSpecifier = pack( 'na4na*na8n',
                                        4, 'HEAD', strlen( $url ), $url,