[wp-hackers] Re: WordPress + Squid?

Stephane Daury wordpress at tekartist.org
Wed Sep 12 11:36:14 GMT 2007


Would an ob_clean make that 100% sure?
---
Stephane - http://tekartist.org/




Stephane


On Sep 12, 2007, at 1:43, Viper007Bond wrote:

> 99% sure I did.
>
> On 9/11/07, Omry Yadan <omry at yadan.net> wrote:
>>
>> hmm, maybe you can send the header for text/html BEFORE you send  
>> the 304?
>>
>>
>> Viper007Bond wrote:
>>
>>> Sending that header there ended up making the site serve a
>>> application/octet-stream if you refreshed too fast.
>>>
>>> We decided it wasn't worth the trouble and just enabled  
>>> memcaching + sql
>>> caching. We also put a redirect to Coral in the .htaccess (commented
>> out)
>>> just incase on those hard hitting days. We'll see how it goes  
>>> soon (our
>>> traffic is uneven -- we essentially get slashdotted once a week  
>>> and only
>> in
>>> certain months).
>>>
>>> On 9/11/07, Viper007Bond <viper at viper007bond.com> wrote:
>>>
>>>> My web admin buddy who helps me run the server all my WordPress  
>>>> sites
>> are
>>>> has set up Squid due to the traffic one of my sites gets (no,  
>>>> not my
>>>> personal blog sadly). I already run WP-Cache on it, but during peak
>> times,
>>>> the server bogs down and becomes a tad slow.
>>>>
>>>> However, he says WordPress (well, more likely WP-Cache) isn't  
>>>> sending a
>>>> 304 header when the page hasn't been modified. Is all I need to  
>>>> do to
>> fix
>>>> this is send a 304 via header() right before this line in
>>>> wp-cache-phase-1.php ?
>>>>
>>>> if ($meta->dynamic) {
>>>>
>>>> i.e. this:
>>>>
>>>> header( 'HTTP/1.1 304 Not Modified' );
>>>> if ($meta->dynamic) {
>>>>
>>>>
>>>> Anyone knowledgeable care to weigh in?
>>>>
>>>> I'm running WP 2.2.3 on this particular install.
>>>>
>>>> --
>>>> Viper007Bond | http://www.viper007bond.com/
>>>>
>>>
>>>
>>>
>>>
>>>
>>
>> _______________________________________________
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>>
>
>
>
> -- 
> Viper007Bond | http://www.viper007bond.com/
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers



More information about the wp-hackers mailing list