FreeBSD performance tuning: Sysctl parameter, loader.conf, kernel

I’d recommend against options IPFIREWALL_DEFAULT_TO_ACCEPT. The default is to Default to Deny. The firewall comes up with just one rule deny ip from any to any and stays that way until a script configures exactly what traffic should get through. Follow-Up Note: RSA (one of the world’s leading security technology companies) was hacked recently when … Read more

Are networks now faster than disks?

Here are some numbers that you are probably looking for, as quoted by Jeff Dean, a Google Fellow: Numbers Everyone Should Know L1 cache reference 0.5 ns Branch mispredict 5 ns L2 cache reference 7 ns Mutex lock/unlock 100 ns (25) Main memory reference 100 ns Compress 1K bytes with Zippy 10,000 ns (3,000) Send … Read more

Does is_admin() really provide a plugin performance improvement?

The is_admin() function is basically used to check whether the running request is routing on /wp-admin/. Calling the is_admin() conditional function, you can restrict files you only want to load when a request goes through the /wp-admin/. Note that is_admin() and is_super_admin() are not the same and both handle different conditions. Looking forward, when sending … Read more

How to check performance of WordPress dashboard

From a very high level, off the top of my head these are the main things that contribute to how long it takes to load a page in the dashboard in WordPress: Application processing: PHP/Apache doing work Database processing: PHP calling MySQL and the time for queries to run External services – calling external API’s … Read more

Remove unused CSS and JS

Google Page Speed tells you that cached files slow down your page not because cached files are slower than non-cached ones. It’s because (for example) file: https://whcl.ir/wp-content/cache/min/1/aad770152f8bd8d0197b0ef0ecc3052b.css is a combination of all your CSS files and it is the only one, so it contains all your theme, plugins and WP CSS code. When files are … Read more