BPS Caching Code
-
re BPS cache code and comet cache
I am trying out comet cache on two sites. Is it necessary to use BPS cache code in the htaccess or will that slow down or interfere with comet cache or other caching plugins
-
I assume comet cache uses/comes with its own htaccess Browser caching code since every single WordPress caching plugin that I am aware of typically comes with its own htaccess Browser caching code. So you would use the comet cache htaccess Browser caching code and not BPS Speed Boost htaccess Browser caching code. Using 2 sets/code blocks of htaccess Browser caching code would be redundant so I am not exactly sure what could happen if you do that. Never tested that before.
as far as I can tell comet cache adds no code to the htaccess. It a turn it on and mostly let it run. I makes static html pages in a cache folder which is why it adds nothing to the htaccess file as far as I have seen.
Comet Cache (PKA ZenCache) has an additional option called GZIP Compression, which uses/creates htaccess Browser caching code: https://wordpress.org/plugins/comet-cache/screenshots/ So if you choose to use that option then delete the BPS htaccess Speed Boost Cache code, which also has Gzip Compression Browser caching htaccess code. The choice is up to you.
I just tested Comet Cache. HOLY SMOKES! Looks like I will most likely be going Comet Cache Pro. I was creating a page caching plugin because I could not find an existing page caching plugin that did not have some kind of problems on my host. The speed is identical to what I was building so no need to build it any longer. A solution already exists. SWEET!
Damn it. It breaks the mobile plugin I am using, which I will getting rid of soon anyway and just making my custom theme Responsive, but I cannot use Comet Cache until I dump my mobile plugin and go Responsive. Rats!
SWEET! Just needed to exclude User Agents.
User-Agent Exclusion Patterns
iPhone
iPod
Android
BB10
BlackBerry
webOS
IEMobile/7.0
IEMobile/9.0
IEMobile/10.0
MSIE 10.0
iPad
PlayBook
Xoom
P160U
SCH-I800
Nexus 7
TouchI beefed up the BPS Speed Boost Cache Code: http://forum.ait-pro.com/forums/topic/htaccess-caching-code-speed-boost-cache-code/ and added some more things to it. So grab the newest BPS Speed Boost Cache Code htaccess code. Using both the BPS Speed Boost Cache Code and Comet Cache together produces blazing fast speeds.
Do you have any suggestions for these
1. Minify html
2. Minify CSS
3. Minify Javascript
4. Remove query strings from static resources These seem to relate a lot to WordPress core theme stuff which I don’t understand should come into play when those themes are not being used just in the theme bucket. I can understand the current theme having some of this stuff in here but 2016 theme emojii for example. Unless WP core is calling those.http://www.yourindoorherbgarden.com
Using just your new speedboost vs old speedboost
pingdom san jose 12 requests
old 90%
new 92%
This may be due to my browser cache being set from first test
But using comet cache I could not get over 63% on any pingdom test location. And cometcache added 6 more page requests to the load.I wonder if it is your etag setting or if comet cache default expire of 7 days conflicts with speed boost mostly 2 day expire time
http://www.successfulflyfishing.com/how-to-identify-trout-species/
Tested from San Jose, California, USA on May 26 at 06:16:55
Page size 483.7kB
Load time 362ms
Requests 32
Perf. grade 81/100
Your website is faster than 98% of all tested websites
Not too bad using comet cache and your old speed boost code.
The new Speed Boost Cache code is faster on every benchmark speed test I did on my sites so maybe there is some other factor on your sites that is different. ie one or more of the lines of code do not work well on your particular site. Your primary goal is optimum website performance vs getting the best grade possible. All website speed benchmark testing sites include checks for everything under the sun for every type of website. They do not have different tests for different types of websites. ie an HTML site vs a WordPress site. So don’t get too caught up in getting a better grade and focus on actual website performance.
You can do benchmark/website load speed/performance testing/checking with Firefox, Firebug, Firephp and Yslow or you can use one of the online website speed testing sites such as Google PageSpeed Insights, Pingdom or GTmetrix. I personally prefer Firefox, Firebug, Firephp and Yslow because you are loading your site from your computer and can see that actual load speed performance vs being told the load speed performance by a benchmark testing website.
1. Minify html, 2. Minify CSS, 3. Minify Javascript are more about getting a better grade vs a real performance increase.
4. Remove query strings from static resources
You can do this in your theme functions.php file or by using a plugin and I believe it does help a little. ie you may be able to improve performance in milliseconds. http://forum.ait-pro.com/forums/topic/remove-query-strings-from-static-resources/I just fiddled around with creating Query String removal code and this has code has the nice added benefit of allowing you to remove additional Query String Parameters besides just ?ver= if you wanted to do that (be careful with doing that unless you understand what you are doing – probably best just to use the code exactly as is): http://forum.ait-pro.com/forums/topic/remove-query-strings-from-static-resources/#post-29602
Thanks for all the information on the other items I asked about. I will do some testing on the old code vs the new speed boost.
The info on the other items was very helpful. I have seen plugins that do minify and removal but every plugin that has to load has a performance hit.
I will close out this thread for now and reopen if I get more info you might be interested in.
Again thanks for the help on this topic.
I am going to reopen this for this post. Just got done testing this URI
http://www.successfulflyfishing.com/how-to-identify-trout-species/ with comet cache, old speed boost and optimized images
GTMetrix
Page Load 93 YSlow89 loadtime 0.9 424KB 31 requestsPingdom San Jose
Perf 81/100 requests 32 loadtime 398ms page size 483.8
faster than 98% of all tested websitesI don’t think new speedboost will improve this mich but I will test it to see.
The insights page beats my out by 1% at 99% faster but it is only 1/2 my page size and not many images.
So Speedboost and comet cache together really to rock.
*****************
I also got the stuff taken care of on fly-fishing-colorado.com with comet cache and headers not showing after an update. Had to delete almost 80 bad images out of the media library and fix a bunch of links but all is working now.
+++++++++++++++++
Thanks again for all your help and info on this caching issue. You gave me some good info.Comet Cache has the ability to selectively cache dynamic query strings such as the google font api and emojiis that many themes use. What would be the effect of caching them as opposed to removing them from static strings?
- The topic ‘BPS Caching Code’ is closed to new replies.