Commit of various live hacks
[lhc/web/wiklou.git] / includes / job / jobs / HTMLCacheUpdateJob.php
index 20245b3..55c9f99 100644 (file)
@@ -236,13 +236,19 @@ class HTMLCacheUpdateJob extends Job {
                                array( 'page_id' => $batch ) + $touchedCond,
                                __METHOD__
                        );
+                       # WM patch: throttle to avoid apache CPU exhaustion -- TS
+                       if ( php_sapi_name() == 'cli' ) {
+                               sleep( 1 );
+                       }
                }
 
+               # Disable this as a temporary measure per private-l post -- TS
                # Update squid
+               /*
                if ( $wgUseSquid ) {
                        $u = SquidUpdate::newFromTitles( $titleArray );
                        $u->doUpdate();
-               }
+               } */
 
                # Update file cache
                if  ( $wgUseFileCache ) {