Quick Nav:  Online Store   |   Login | Register

HTTP Compression does not seem to be working

Rate this topic:

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
AuthorMessages
Rodney
<100 Posts
Posts:64


04/07/2008 5:18 AM  

Hi John,

Since I upgraded to PB 3.x PokerDIY.com seems to be running a lot slower, and I am trying to pinpoint the problem (it may or may not be related to PB but this is a good place to start).

I ran www.pokerdiy.com through the HTTP Compression checker (http://www.websiteoptimization.com/services/analyze/)  and YSlow, and it seems as though it's nto getting GZipped, which could explain a lot.

I did not change anything on the upgrade - I checked the core settings (I don't think they matter though as PB takes preference?) and it's set to GZIP comp. I checked the Snapis config file and it has the following line:

        compression-algorithm="gzip"
        compression-level="High">

so... any idea why it's not compressing?

John Mitchell
Posts:2779


04/07/2008 8:02 AM  

That is strange. I can see PageBlaster is installed, but neither compression nor caching is working.

It may be an excludePath, if you rename your Snapsis.PageBlaster.config to .txt or zip it up you can attach it here and I'll take a look.

As a first check, make sure the one for missing tabid is removed:

path pattern="\?(?!tabid)" excludeFrom="All" />

That one is no longer needed.

 

Rodney
<100 Posts
Posts:64


04/07/2008 6:07 PM  

It doesn't seem to have that line - here it is...


Attachment: 1479881271.txt

Host Account
<100 Posts
Posts:82


04/07/2008 10:16 PM  
Ok, I see why the caching is not working. It looks like you complete disabled caching in the memory and disk intervals and with an exclude path.

Is there a reason you didn't want caching? I'll check to see if I have a problem with compression when caching is completely disabled.
Rodney
<100 Posts
Posts:64


04/08/2008 2:52 AM  
That was from when I first set it up a year or so ago - I was getting funny results on some pages so I was doing caching at page level with a module on the main pages.

I have now removed the exclude path line, and I have added a PB module on my homepage (Tab 354). I set Disk and Memory caching to 10 minutes and refresh the page. Am I correct in saying that the Disk setting should dump the output to the folder under TabID/354? Nothing is appearing - how can I tell if caching is working (it should only be on the PokerDIY home page for now as I did not change the config settings other than the path line. The PB module on the home page should take preference...
John Mitchell
Posts:2779


04/08/2008 7:35 AM  
You can't disable caching at the global level for everything and then re-enable it on a specific page.

You would have to do a regex expression to accomplish that in the global config file, or you could disable at the portal level with this new version and then re-enable at the page level.
John Mitchell
Posts:2779


04/08/2008 7:38 AM  
By disable at portal level I mean you would set the cache intervals to zero. You still can't use an excludePath at the global level and then not exclude at the page level.

Rodney
<100 Posts
Posts:64


04/08/2008 8:40 AM  
Ok, I think I understand - you are saying that the config is global and different to the Portal Level? I thought I could disable it at Portal Level and then re-enable at page level - I actually assumed that the Portal Level WAS the config and that it just was a UI onto it and wrote to it, but you are saying that it is actually different (ie. global). So what should the Global Settings be then by default (actually, nevermind, I'll extract it from the zip - I assume this is the default config) and start from scratch.
Rodney
<100 Posts
Posts:64


04/08/2008 11:35 PM  
Ok, I copied the default config file over my settings and caching is now working. The site is definitely zippier and HTTP compression seems to be working now.

Can you please explain the difference between disk and memory cache? Do I use one or the other, and how does it retrieve it and in what order?

I've got both enabled (6 hours and 12 hours respectively) but nothing is being cached on my homepage (TabID 354) to disk for some reason.
Rodney
<100 Posts
Posts:64


04/08/2008 11:37 PM  
*sigh* - ignore that last observation - the disk cache was dumped now in Tab 354. I would still like to understand how the cache retrieval works though please.
John Mitchell
Posts:2779


04/09/2008 8:00 AM  
The disk cache is a backup to the memory cache. You can set a limit on the amount of memory that gets used and after hitting that limit, only the disk cache will be used. Or, if the app restarts then the request will first check memory, and if not there it will go to disk, if it finds the page on the disk it will first check to see if it is expired, if not expired it will load it back into memory (if the limit is not reached yet) and return the page.

This way you always have your most used pages in memory, and the ones that are not used as much will be ready on disk.

I recommend setting the disk interval to at least 4 days since (I have mine set to 99 days), since PageBlaster does a good job of invalidating disk cache on normal updates.
Rodney
<100 Posts
Posts:64


04/10/2008 12:20 AM  
Thanks for explanation - yes, the invaliding of the cache makes it very useful... I'll see how 4 days disk cache and 12 hours memory works on PokerDIY (which is frequently updated with user content)
John Mitchell
Posts:2779


04/10/2008 7:48 AM  
The only problem you may run into is if you have modules that "pull" their information in from updates that are done through an interface that is not a post-back to the same tab. Like a top posts module for forums, etc.

Although I tend to leave those more static for users that are not logged in and if they are logged in then it becomes real-time.
Rodney
<100 Posts
Posts:64


04/10/2008 9:51 AM  
Yes, I realized that I will try to find a happy compromise for the high-usage pages etc...
Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
Forums >Snapsis Product Support >PageBlaster > HTTP Compression does not seem to be working



ActiveForums 3.7
Powered by: Snapsis Software