Making woocommerce product gallery autoplay
As usual add it to your functions.php and adjust as needed
As usual add it to your functions.php and adjust as needed
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:…
How to Stop WooCommerce REST API Abuse Using Nginx Rate Limiting If your WordPress site is feeling sluggish, but your security plugins (like Wordfence or Sucuri) show zero attacks, you might be looking in the wrong place. Modern “bots” aren’t always trying to brute-force your login page. Instead, they often target the WooCommerce REST API…
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…
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