WordPress Cron vs Real Cron: Why wp-cron.php Slows Your VPS

wordpress cron vs real cron

Every WordPress site on a VPS runs scheduled jobs in the background: publishing queued posts, checking for plugin updates, sending email, clearing expired transients. On a default install, those jobs run through wp-cron.php, which only fires when someone visits your site. The wordpress cron vs real cron question comes down to who triggers the work: … Baca Selengkapnya

How to Move WordPress Uploads to Object Storage and Cut VPS Disk Use

move wordpress uploads to object storage

Every image you upload to WordPress lands in the wp-content/uploads folder on your VPS. One photo is nothing. A year of posts, product shots, and thumbnails adds up to gigabytes, and on a small VPS that disk fills faster than you expect. When it fills, MySQL stops, uploads fail, and the site goes down. The … Baca Selengkapnya

WordPress Transients Explained: When They Help and When They Bloat Your Database

wordpress transients explained

A WordPress site that feels slow for no obvious reason often has a quiet culprit hiding in its database: transients. WordPress transients explained in one sentence: they are temporary values WordPress and its plugins store in the database so the site does not have to repeat expensive work on every page load. Used well, they … Baca Selengkapnya

How to Fix WordPress Error “Allowed Memory Size Exhausted” on a VPS

wordpress allowed memory size exhausted

You open your site and instead of your homepage you get a white screen and one ugly line: Fatal error: Allowed memory size of 134217728 bytes exhausted. That is the wordpress allowed memory size exhausted error, and it means a single PHP request asked for more memory than your server allows. The fix is usually … Baca Selengkapnya

Apache .htaccess vs Nginx Config: How to Convert Your Rules

convert .htaccess to nginx

If you move a site from Apache to Nginx, the first thing that breaks is usually the file you never thought much about: .htaccess. Apache reads that file on every request and applies its rules on the spot. Nginx never reads it at all. To convert .htaccess to Nginx, you translate each rule by hand … Baca Selengkapnya

How to Fix Slow Nginx Response Times Caused by PHP-FPM

slow nginx response times php-fpm

When a page takes several seconds to load but static files still arrive quickly, PHP is usually where the time goes. Nginx answers a plain image in milliseconds, while a WordPress page or admin screen hangs. That gap points to slow nginx response times php-fpm trouble, not to Nginx itself. Nginx is waiting for PHP-FPM … Baca Selengkapnya

How to Use Nginx Map to Block Referrer Spam on Your VPS

nginx map to block referrer spam

Open your analytics after a quiet weekend and you might find visits from domains you have never heard of, linking to pages that do not exist on your site. That is referrer spam: junk traffic sent by bots that forge the HTTP Referer header so their domain shows up in your reports. It brings no … Baca Selengkapnya

How to Set Up a Maintenance Page in Nginx That Shows During Deploys

maintenance page in nginx

Deploys break things. A migration runs long, a file upload stalls halfway, or a config change takes the site down for two minutes while visitors stare at a browser error. A maintenance page in Nginx turns that window into a clear message instead of a broken site: a short page that says the site is … Baca Selengkapnya

What Is Nginx Worker Connections and How Many Do You Actually Need?

nginx worker connections

Open the Nginx config on almost any VPS and you will find a harmless-looking line: worker_connections 1024;. Most people ignore it until their site starts throwing 500 errors during a traffic spike. Nginx worker connections is the setting that caps how many simultaneous connections a single Nginx worker process can handle. Set it too low … Baca Selengkapnya

How to Redirect Old URLs to New Ones in Nginx Without Breaking SEO

redirect old urls in nginx

Every site restructure leaves old URLs behind, and every old URL that returns a 404 leaks the ranking value it built up over months or years. Learning how to redirect old URLs in Nginx properly is what keeps that value moving to the new pages instead of vanishing. A redirect is a simple instruction, but … Baca Selengkapnya