How to not cache nonces with WP Rocket?

Find the specific AJAX call URL and prevent that being cached with the WP-Rocket advanced rules settings. https://docs.wp-rocket.me/article/54-exclude-pages-from-the-cache. As per your comment, you need a strategy for not having the nonce in a file that can be cached such as javascript files, so as you said, use PHP to generate the nonce and pass it … Read more

When I save changes for css and js in my WP localhost env windows 10 the changes don’t take effects immediately!

Try changing the version number on .css and .js files when you change them. That can be a real pain while you are developing so you can use a random number. $randomizr = $rand = rand( 1, 99999999999 );// Enqueue scripts and styles wp_enqueue_script( ‘my-script’, get_stylesheet_directory_uri() . ‘/assets/js/my-script.js’, array(‘jquery’), $randomizr, true );

dynamic page not displaying correctly when Varnish hosting ignores query string parameters

Caching content with query string parameters Varnish hashes the URL and uses this value as its cache key. When a single value in the URL changes, the cache key changes. This would result in a cache miss. Query string parameters are exceptionally prone to this: omitting a parameter, adding a parameter, or changing the order … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)