WordPress Developer Ukraine, Kyiv
Cache Expensive Operations with the WordPress Transients API

Cache Expensive Operations with the WordPress Transients API

Cache expensive operations with the WordPress Transients API The Transients API stores cached data with an expiration time. The same set_transient() and get_transient() calls use the wp_options table on a default install and memory (Redis, Memcached) when a persistent object cache is active, without any code changes. Good candidates are remote API responses, heavy WP_Query…
Details
Configure Content Security Policy Headers for WordPress

Configure Content Security Policy Headers for WordPress

Configure a Content Security Policy for WordPress A Content Security Policy (CSP) header tells the browser which sources a page may load scripts, styles, images, fonts and frames from, and whether inline scripts may run. With a strict policy, an XSS injection that slips through cannot run its script, because the browser refuses it. The…
Details