September 6, 2009
I will do a more complicated all-round analyst later when I get the time. But as far as what I did in the past, I can tell you right away, 1blogcacher blow up the other two.
WP-Super Cache (0.9.6.1): http://wordpress.org/extend/plugins/wp-super-cache/
Hyper-Cache (2.4.2): http://wordpress.org/extend/plugins/hyper-cache/
1Blogcacher (2.0.4): http://1-blog-cacher.javier-garcia.com/#requirements
I first ran Super Cache, and I found the blog accessibility was getting difficult. The amount of time to finish loading was getting longer each time. I thought it was just a host problem but when I disabled the super-cache, the time got shorten.
Super Cache only cache two or three pages according to what I see. I enabled eveything: gzip, Super Cache and WP-Cache and did all sorts of optimizations. I gave up on Super Cache.
Then I decided to give a try to Hyper-Cache. It has a very good feature for mobile cache. But according to my testing, and the statistic it provides, 90% of the caching failures.
I finally gave my last try to 1blogcacher. The loading time is better than Super Cache and Hyper-Cache.
Here are a few reasons.
Query time [ look at footer]
- SuperCache: 0.25 - 0.40 seconds
- Hyper-Cache: 0.90 seconds - 1.20seconds
- 1blogcacher: 0.40 seconds - 0.60seconds
(more...)
Filed under:WordPress Mods Author:John Wong
No Comments »
February 18, 2009
Yeah, if you are really upset about the html filter by wordpress, this is what you want, then you are reading the right entry.
So i searched around and finally I got some other articles complaining about this.
There are two reasons why i need to stop the filter
1) it filters my < and > tags, so they won't appear in my highlight code tag
instead, you will see #include , not #include
2) it's annoying, i don't like dealing with it
so here is the solution
[ 1]open up wp-include/kses.php
Find
1 2 3 4
| // Post filtering
add_filter('content_save_pre', 'wp_filter_post_kses');
add_filter('excerpt_save_pre', 'wp_filter_post_kses');
add_filter('content_filtered_save_pre', 'wp_filter_post_kses'); |
Replace with
1 2 3 4 5 6 7 8 9 10
| // Post filtering
// add_filter('content_save_pre', 'wp_filter_post_kses');
add_filter('excerpt_save_pre', 'wp_filter_post_kses');
// add_filter('content_filtered_save_pre', 'wp_filter_post_kses');
}
function disable_kses_content() {
remove_filter('content_save_pre', 'wp_filter_post_kses');
}
add_action('init','disable_kses_content',20); |
[2] finally, you need to download this plugin
Quotmarks Replacer
http://sparanoid.com/archive/wordpress/quotmarks-replacer/
You will need it, trust me, to disable those annoying special character filters.
Filed under:WordPress Mods Author:John Wong
4 Comments »
February 17, 2009
It's just for fun, i will integrate a similar one into my hello world program
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
| // Let me trying to run another calculation program
// no more salary now
// let gets this people vs bandwidth
#include <iostream>
using namespace std;
// let us do a gloabl variables
int visitorNumber, visitBotNumber, bandwidth, dataSize, transferTime;
signed int dataBWR = 4;
// let us begin the main body of this program
int main()
{
// asks some questions
int x;
cout << "How many visitors so far?\n"<< endl;
cin >> x;
cin.get();
int y;
cout << "How many bot visitors?\n"<< endl;
cin >> y;
cin.get();
int z;
cout << "What is the total amount of data size being uploaded?\n"<< endl;
cin >> z;
if (z >10000)
bandwidth = (x + y) + (dataBWR * z);
else
bandwidth = (x + y) * (dataBWR);
cin.get();
cout << bandwidth;
cin.get();
return 0;
} |
Filed under:C/C++, College Notes, PHP&MYSQL, Ubuntu, Uncategorized Category, WordPress Mods, phpBB Mods (abandoned) Author:John Wong
2 Comments »