Tag: cache
-
Fixing a broken ATOM Feed
The article explains how to convert an outdated ATOM feed to a JSON feed using a PHP proxy script. It details the process of fetching, caching, and transforming the XML data into a JSON format that can be used for more modern feed readers. The provided code snippets illustrate the conversion steps from ATOM to…
-
Quick Tip: Script Debugging in WordPress
in WordPressWhen debugging core WordPress scripts, dealing with cached copies like in `script-loader.php` can be tricky. You can apply a unique `ver` argument to core scripts on each refresh using a filter. This ensures you get the most recent version from page and browser cache. Remember to enable `SCRIPT_DEBUG` when debugging core scripts.
-
Better Caching in WordPress
in WordPressCaching data in WordPress is essential for performance. Using the Transients API is common but using the WP_Object_Cache functions can offer more flexibility, especially for scenarios like API data changes. Additionally, caching too much data can lead to inefficiencies, so optimizing cache object size can significantly improve performance.
-
Purging All The Caches!
in WordPressLearn how to efficiently manage WordPress caching with PHP OPcache, WordPress Object Cache, and full page caching using custom code for an Admin Dashboard widget. Simplify cache purging across three different plugins with this code snippet.
-
Query Caching (and a little extra)
in WordPressWordPress does not cache queries by default, but using the Advanced Post Cache plugin can improve performance. By caching `WP_Query` calls with a persistent object cache, performance can be enhanced even further with additional caching techniques for different queries and responses.
-
CSS & JS Concatenation in WordPress
in WordPressAutomated concatenation of Javascript and CSS files in WordPress can be enhanced using the `nginx-http-concat` plugin. Even though it was designed for nginx, it can be adapted to work with Apache servers. By utilizing specific code in `wp-config.php` and `mu-plugin`, improved caching and speed can be achieved. Consider turning this setup into a dedicated plugin…