On Tue, Jul 12, 2011 at 02:38:04AM -0700, john s. wrote:
> 
> 
> So.... 
> 
> 
> any other optmize measures that you can reccommed for RT without any
> problems such like mod_cache ?
> 
> 
> best regards john 
> 

Here are some options that we have that you may want to give a try:

# Reduce DEFLATE compression level to make it faster.
DeflateCompressionLevel 1
DeflateBufferSize 1024

# Change Mason caching parameters
PerlSetVar MasonStaticSource true
PerlSetVar MasonBufferPreallocateSize 4096000
PerlSetVar MasonDataCacheDefaults "cache_class=> MemoryCache, cache_depth => 4"
PerlSetVar MasonPreloads '/Elements/*'

We also turn on some caching for common graphics, CSS, javascript...:

<Location />
        SetOutputFilter DEFLATE
        # Netscape 4.x has some problems...
        BrowserMatch ^Mozilla/4 gzip-only-text/html
        # Netscape 4.06-4.08 have some more problems
        BrowserMatch ^Mozilla/4\.0[678] no-gzip
        # MSIE masquerades as Netscape, but it is fine
        # BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
        # NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48
        # the above regex won't work. You can use the following
        # workaround to get the desired effect:
        BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
        # Don't compress images
        SetEnvIfNoCase Request_URI \
        \.(?:gif|jpe?g|png)$ no-gzip dont-vary
        SetEnvIfNoCase Request_URI \.pdf$ no-gzip dont-vary

        <IfModule mod_expires.c>
        # turn on the mod_expires module for this directory
        ExpiresActive on

        # cache common graphics for 7 days
        ExpiresByType image/x-icon "access plus 7 days"
        ExpiresByType image/jpg "access plus 7 days"
        ExpiresByType image/gif "access plus 7 days"
        ExpiresByType image/jpeg "access plus 7 days"
        ExpiresByType image/png "access plus 7 days"

        # cache CSS for 24 hours
        ExpiresByType text/css "access plus 24 hours"

        # cache javascript for 1 hour
        ExpiresByType application/x-javascript "access plus 1 hour"
        # set the default to 24 hours
        ExpiresDefault "access plus 24 hours"

        Header set Cache-Control "must-revalidate"
        </IfModule>

        # Make sure proxies don't deliver the wrong content
        Header append Vary User-Agent env=!dont-vary
        SetHandler perl-script
        PerlHandler RT::Mason
</Location>


Please test and see if any of these help or not.

Regards,
Ken

--------
2011 Training: http://bestpractical.com/services/training.html

Reply via email to