Register script version not showing

I want to implement cache busting on a specific script, but the version is not added to the url as query vars. Here is the code I’m using : wp_register_script( ‘custom’, get_stylesheet_directory_uri() . ‘/js/custom.min.js’, array(‘jquery’,’modernizr’), filemtime( get_stylesheet_directory().’/js/custom.min.js’ ), true ); I’m using the filemtime function to get the timestamp of the last modification as my … Read more

Full page NGINX (or Cloudflare) caching and WordPress nonces

Goal: I want to cache the full WordPress response via NGINX and exclusively use the REST API for the user specific parts. Issue: I can’t get an authenticated nonce to use against the API. My plan was to expose a rest endpoint that returns a valid nonce shown below: add_action( ‘rest_api_init’, function () { register_rest_route( … Read more

How to totally disable cache in WordPress?

I have a plugin that somehow seems to be caching even though I have disabled cache in Firefox per these instructions: https://support.mozilla.org/en-US/questions/1232148 I have also tried browsing in Private Window (like Chrome incognito). In wp-config I have define(‘WP_CACHE’, false); In the plugin’s config file I have if ( ! defined( ‘LEARNDASH_TRANSIENTS_DISABLED’ ) ) { define( … Read more

Getting soft 404 errors (200 status) when caching plugins are enabled

I have a blog running the latest stable version of WordPress on a dedicated virtual server with the following situation. (Replace [caching plugin] with W3 Total Cache, Hyper Cache, or Quick Cache, as I’ve tried all three with the same results.) [caching plugin] is disabled. I visit a known bad link on my site (http://example.com/xyzz/) … Read more

Will caching WordPress affect session variables, custom filed updates and displaying images from a non wordpress table?

I have a hybrid between a WordPress installation and another database with products data. I have custom php codes which pull product data from the external database. I want to cache everything that’s WordPress but let the custom php codes function normally. Can this be done? 1 Answer 1 You can use W3TC or WP … Read more

Programmatically insert hierarchical terms & set terms for post causes glitch? [duplicate]

This question already has answers here: Inserting terms in an Hierarchical Taxonomy (7 answers) Closed 8 years ago. I am inserting an array of terms into my custom taxonomy programmatically. Some terms have parents/children. After each term has been entered, I then insert an array of posts into my custom post type. After inserting each … Read more

Empty Super Cache programmatically (with ACF action) [closed]

Closed. This question is off-topic. It is not currently accepting answers. Your question should be specific to WordPress. Generic PHP/JS/HTML/CSS questions might be better asked at Stack Overflow or another appropriate site of the Stack Exchange network. Third party plugins and themes are off topic. Closed 7 years ago. Improve this question I regularly use … Read more

W3 Total Cache doesn’t detect memcached [closed]

Closed. This question is off-topic. It is not currently accepting answers. Your question should be specific to WordPress. Generic PHP/JS/HTML/CSS questions might be better asked at Stack Overflow or another appropriate site of the Stack Exchange network. Third party plugins and themes are off topic. Closed 7 years ago. Improve this question I have a … Read more