Adding a ‘featured’ filter to WooCommerce products screen
As usual add this code to your functions.php
Filtering only featured products comes in handy in several scenarios especially reordering them
As usual add this code to your functions.php
Filtering only featured products comes in handy in several scenarios especially reordering them
In order to optimize Apache’s configuration we needed “Average and Peak Number of Concurrent Connections” but we didn’t have an external software like Prometheus or Zabbix to record and analyze historical data. So we needed to find a way with what we had at hand. First comes to mind: Daily Process Log in WHM: This…
for ((i=1; i<=5; i++)); do history -d $(history 1 | awk ‘{print $1}’); done to get rid of the last 5 lines / commands
Why debug.log Files Matter Performance impact: Large log files can eat up disk space and slow down file operations. Backup bloat: If your backups include debug.log, they can become unnecessarily large. Security risk: Debug logs may contain sensitive paths, plugin names, or even database queries. If exposed publicly, attackers could use this information. Maintenance signal:…
If you manage a Linux server, you know the drill: you check your logs and see a single IP address making 20,000 requests in an hour. Is it a legitimate crawler, a customer having a bad day, or a malicious bot searching for vulnerabilities? Manually checking every IP against threat databases is exhausting. To solve…
You might need to calculate average amount of memory used by each Apache process for several reasons. One being deciding on MaxRequestWorkers . You can do it by running: ps -ylC httpd –sort:rss | awk ‘{x += $8;y += 1} END {print “Apache Memory Usage (MB): “x/1024; print “Average Process Size (MB): “x/((y-1)*1024)}’ Apache Memory…
Sometimes WooCommerce notices get stuck for different reasons, but we’ve had this particular woocommerce notice persisting in more than one woocommerce sites. To get rid of this “Critical vulnerabilities in WooCommerce” notice you have to set the notice to “actioned”. In order to that, you can either go to phpMyAdmin and do it manually like…