Skip to content

Bits of .NET

Daily micro-tips for C#, SQL, performance, and scalable backend engineering.

  • Asp.Net Core
  • C#
  • SQL
  • JavaScript
  • CSS
  • About
  • ErcanOPAK.com
  • No Access
  • Privacy Policy

Category: Wordpress

Wordpress

WordPress Feels Sluggish Even With Caching

- 12.01.26 | 12.01.26 - ErcanOPAK comment on WordPress Feels Sluggish Even With Caching

Pages load fast. Admin doesn’t. WhyCaching helps visitors, not wp-admin. Tip Audit active plugins for admin-side hooks.

Read More
Wordpress

WordPress Scheduled Posts Miss Publish Time

- 11.01.26 - ErcanOPAK comment on WordPress Scheduled Posts Miss Publish Time

You schedule… nothing happens. WhyWP Cron depends on page visits. Fix Replace WP Cron with a real server cron job.

Read More
Wordpress

WordPress Search Is Slow Even on Small Sites

- 11.01.26 - ErcanOPAK comment on WordPress Search Is Slow Even on Small Sites

Not traffic-related. Still slow. WhyDefault WP search performs full table scans. Fix Use indexed search plugins or custom queries.

Read More
Wordpress

WordPress Images Look Blurry on Retina Screens

- 07.01.26 - ErcanOPAK comment on WordPress Images Look Blurry on Retina Screens

Uploaded images look fine locally, blurry online. WhyDefault image sizes don’t match device pixel ratio. Fix Enable responsive image sizes and serve higher-resolution variants.

Read More
Wordpress

WordPress Admin Becomes Slower Over Time

- 07.01.26 - ErcanOPAK comment on WordPress Admin Becomes Slower Over Time

Not broken — just painfully slow. WhyAccumulated transients and orphaned options. Fix Clean expired transients periodically and limit autoloaded options. This prevents admin-side slowdown without affecting visitors.

Read More
Wordpress

WordPress REST API Returns 401 Only in Production

- 06.01.26 - ErcanOPAK comment on WordPress REST API Returns 401 Only in Production

Local works, live breaks. WhySecurity plugins block unauthenticated REST calls. FixWhitelist REST routes explicitly.

Read More
Wordpress

WordPress Pages Randomly Lose Styles

- 06.01.26 - ErcanOPAK comment on WordPress Pages Randomly Lose Styles

Refresh fixes it… sometimes. WhyCSS is served before dynamic plugins finish execution. FixForce CSS loading order and avoid inline dynamic styles.

Read More
Wordpress

WordPress Updates Fail on Shared Hosting

- 05.01.26 - ErcanOPAK comment on WordPress Updates Fail on Shared Hosting

Everything works… except updates. WhyFile ownership mismatch between FTP and PHP user. FixForce direct filesystem method in config.

Read More
Wordpress

WordPress Shortcodes Break Page Caching

- 05.01.26 - ErcanOPAK comment on WordPress Shortcodes Break Page Caching

Pages randomly show dynamic content. WhyShortcodes execute on every render phase. FixReplace shortcodes with cached blocks or template partials.

Read More
Wordpress

WordPress REST Responses Cached Incorrectly

- 04.01.26 - ErcanOPAK comment on WordPress REST Responses Cached Incorrectly

Users see outdated data. WhyCaching plugins ignore REST headers. FixAdd explicit cache-control headers to REST responses.

Read More
Wordpress

WordPress Cron Jobs Never Run on Low-Traffic Sites

- 04.01.26 - ErcanOPAK comment on WordPress Cron Jobs Never Run on Low-Traffic Sites

Scheduled tasks silently fail. WhyWP-Cron depends on page visits. FixDisable WP-Cron and use a real system cron.

Read More
Wordpress

WordPress REST API Returns 401 Randomly

- 03.01.26 - ErcanOPAK comment on WordPress REST API Returns 401 Randomly

Works for some users, fails for others. WhyAuthentication cookies blocked by SameSite rules. FixAdjust cookie settings for cross-origin REST calls.

Read More
Wordpress

WordPress Pages Load Fast but TTFB Is High

- 03.01.26 - ErcanOPAK comment on WordPress Pages Load Fast but TTFB Is High

The page renders quickly… after waiting. WhyHeavy server-side hooks delay the first byte. FixProfile PHP execution time, not frontend assets.

Read More
Wordpress

WordPress Login Loop Behind CDN or Proxy

- 03.01.26 - ErcanOPAK comment on WordPress Login Loop Behind CDN or Proxy

Correct password, infinite redirects. WhyHTTPS detection fails behind reverse proxies. Fix $_SERVER[‘HTTPS’] = ‘on’;

Read More
Wordpress

WordPress Becomes Slow After Adding “Just One Plugin”

- 03.01.26 - ErcanOPAK comment on WordPress Becomes Slow After Adding “Just One Plugin”

Classic production nightmare. WhyMany plugins hook into init and run on every request. FixProfile with Query Monitor and remove unnecessary hooks.

Read More
Wordpress

WordPress Login Works Locally, Fails on Hosting

- 02.01.26 - ErcanOPAK comment on WordPress Login Works Locally, Fails on Hosting

Same credentials, different result. WhyHosting uses aggressive object caching. Fix Clear object cache on password reset hook.

Read More
Wordpress

WordPress Admin Suddenly Becomes Extremely Slow

- 02.01.26 - ErcanOPAK comment on WordPress Admin Suddenly Becomes Extremely Slow

Frontend is fast, admin unusable. WhyHeavy meta queries triggered by custom fields. Fix Disable unnecessary post meta loading using remove_meta_box.

Read More
Wordpress

WordPress Login Keeps Failing Behind Cloudflare

- 01.01.26 - ErcanOPAK comment on WordPress Login Keeps Failing Behind Cloudflare

Correct password, endless redirects. Why it happensX-Forwarded-Proto header missing → HTTPS confusion. FixForce SSL detection in wp-config.php.

Read More
Wordpress

WordPress Suddenly Gets Slow After “Just One Plugin”

- 01.01.26 - ErcanOPAK comment on WordPress Suddenly Gets Slow After “Just One Plugin”

Classic WordPress horror story. Why it happensPlugins hook into init and wp_loaded, running on every request. Life-saving moveDisable plugins one by one while profiling (Query Monitor).

Read More
Wordpress

WordPress — REST API Auth Failures Behind CDN

- 31.12.25 - ErcanOPAK comment on WordPress — REST API Auth Failures Behind CDN

CDNs often strip auth headers. Fix Whitelist Authorization header in CDN config.

Read More
Wordpress

WordPress — Admin AJAX Causing High CPU Usage

- 31.12.25 - ErcanOPAK comment on WordPress — Admin AJAX Causing High CPU Usage

admin-ajax.php can be abused by plugins. Fix Limit or cache AJAX calls; audit plugins.

Read More
Wordpress

WordPress — wp_options Autoload Kills TTFB

- 30.12.25 - ErcanOPAK comment on WordPress — wp_options Autoload Kills TTFB

Autoloaded options load on every request. ✅ Fix Set unused options to autoload = no.

Read More
Wordpress

WordPress — Heartbeat API Triggers Admin CPU Spikes

- 29.12.25 - ErcanOPAK comment on WordPress — Heartbeat API Triggers Admin CPU Spikes

Runs every 15 seconds by default. ✅ Fix Throttle or disable outside editor pages.

Read More
Wordpress

The White Screen of Death Fix (WP_DEBUG)

- 29.12.25 - ErcanOPAK comment on The White Screen of Death Fix (WP_DEBUG)

The Problem: Your WordPress site is showing a blank white screen, and you have no idea which plugin caused it. The Fix: Open your wp-config.php file via FTP and change the debug settings to log the error to a file instead of crashing silently. define( ‘WP_DEBUG’, true ); define( ‘WP_DEBUG_LOG’, true ); define( ‘WP_DEBUG_DISPLAY’, false […]

Read More
Wordpress

WordPress — Revisions Table Can Explode Database Size

- 28.12.25 - ErcanOPAK comment on WordPress — Revisions Table Can Explode Database Size

Every save creates a revision. ✅ Fix Limit revisions in wp-config.php.

Read More
Wordpress

WordPress — REST API Enabled = Attack Surface

- 27.12.25 - ErcanOPAK comment on WordPress — REST API Enabled = Attack Surface

Many sites don’t need it. ✅ Fix Disable REST endpoints if unused. Result Better security Lower load

Read More
Wordpress

WordPress — Plugins Loading Everywhere Is the Real Killer

- 25.12.25 - ErcanOPAK comment on WordPress — Plugins Loading Everywhere Is the Real Killer

Most plugins load on every request. ✅ Fix Conditionally load assets only where needed. Result: massive TTFB improvement.

Read More
Wordpress

WordPress — wp_posts Without Indexes Is a Time Bomb

- 21.12.25 - ErcanOPAK comment on WordPress — wp_posts Without Indexes Is a Time Bomb

Large blogs suffer without proper indexes. Must-have (post_type, post_status) (post_date) Speeds up homepage and archives drastically.

Read More
Wordpress

WP-Cron Runs on User Requests (Not Real Cron)

- 19.12.25 - ErcanOPAK comment on WP-Cron Runs on User Requests (Not Real Cron)

Low traffic = delayed jobs. ✅ Fix Disable WP-Cron and use system cron instead.

Read More
Wordpress

WordPress Slow Even With Cache — Autoloaded Options

- 17.12.25 - ErcanOPAK comment on WordPress Slow Even With Cache — Autoloaded Options

Huge autoload rows load on every request. ✅ Fix Audit: SELECT * FROM wp_options WHERE autoload=’yes’; Disable unused entries.

Read More
Page 4 of 5
« Previous 1 2 3 4 5 Next »

Posts navigation

Older posts
Newer posts
April 2026
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
27282930  
« Mar    

Most Viewed Posts

  • Get the User Name and Domain Name from an Email Address in SQL (950)
  • How to add default value for Entity Framework migrations for DateTime and Bool (858)
  • Get the First and Last Word from a String or Sentence in SQL (836)
  • How to select distinct rows in a datatable in C# (805)
  • How to make theater mode the default for Youtube (754)
  • Add Constraint to SQL Table to ensure email contains @ (578)
  • How to enable, disable and check if Service Broker is enabled on a database in SQL Server (564)
  • Average of all values in a column that are not zero in SQL (531)
  • How to use Map Mode for Vertical Scroll Mode in Visual Studio (489)
  • Find numbers with more than two decimal places in SQL (447)

Recent Posts

  • C#: Use Init-Only Setters for Immutable Objects After Construction
  • C#: Use Expression-Bodied Members for Concise Single-Line Methods
  • C#: Enable Nullable Reference Types to Eliminate Null Reference Exceptions
  • C#: Use Record Types for Immutable Data Objects
  • SQL: Use CTEs for Readable Complex Queries
  • SQL: Use Window Functions for Advanced Analytical Queries
  • .NET Core: Use Background Services for Long-Running Tasks
  • .NET Core: Use Minimal APIs for Lightweight HTTP Services
  • Git: Use Cherry-Pick to Apply Specific Commits Across Branches
  • Git: Use Interactive Rebase to Clean Up Commit History Before Merge

Most Viewed Posts

  • Get the User Name and Domain Name from an Email Address in SQL (950)
  • How to add default value for Entity Framework migrations for DateTime and Bool (858)
  • Get the First and Last Word from a String or Sentence in SQL (836)
  • How to select distinct rows in a datatable in C# (805)
  • How to make theater mode the default for Youtube (754)

Recent Posts

  • C#: Use Init-Only Setters for Immutable Objects After Construction
  • C#: Use Expression-Bodied Members for Concise Single-Line Methods
  • C#: Enable Nullable Reference Types to Eliminate Null Reference Exceptions
  • C#: Use Record Types for Immutable Data Objects
  • SQL: Use CTEs for Readable Complex Queries

Social

  • ErcanOPAK.com
  • GoodReads
  • LetterBoxD
  • Linkedin
  • The Blog
  • Twitter
© 2026 Bits of .NET | Built with Xblog Plus free WordPress theme by wpthemespace.com