Page caching generates a static HTML version of the page so IP geolocation occurs on the first rendering and is not triggered on subsequent renderings – your use case is not compatible with W3 Total Cache’s page caching.
It’s possible to accomplish what you are trying to accomplish with page caching, however, you would need to write your own caching implementation to check against a visitor geolocation cookie or $_GET parameter to serve different static HTML documents dependent upon the contents of its value (well beyond the scope of any simple coding).
Related Posts:
- How to make custom total price reactive in navigation
- Status 400 for AJAX POST Request with admin-ajax.php
- AJAX to add to cart multiple products woocommerce
- How to echo a PHP code into WooCommerce variation product?
- Remove Woocommerce product from cart with ajax/fetch
- WooCommerce Modal Fly cart on add to cart – With AJAX
- WordPress Ajax always returns a 404 error
- Ajax template: how to handle head section
- How to save Clicks of a download link button while it doesn’t matter if we refresh the page or again login/logout
- Audio Player not loading when the content is loaded through Ajax, MediaElement.js no applied
- Handling an Ajax form submit
- Custom WordPress+PHP+MYSQL+AJAX form, submit event not captured by Javascript, but does POST data to the DB
- Click loads template via ajax
- using woocommerce_template_single_add_to_cart in shop-loop – javascript issues [closed]
- WooCommerce: update custom fields after checkout validation failure
- Access/update database with jQuery
- How to display something in a div when the user clicks on a text in another div – no page refresh [closed]
- admin-ajax.php responding with 0
- How to speed up admin-ajax.php in wordpress
- Page Reloads Before AJAX Request Finishes
- Sending jsPDF documents to the server
- Trying to implement Ajax comments in WordPress, getting WP error
- How to test nonce with AJAX – Plugin development
- class click counter save number
- AJAX request status 200 but no actual “response”
- Ajax not working es expected (Returns 0)
- Creating a Multi-Level Associative Object Using AJAX
- Ajax – Call to undefined function get_option()
- Ajax random number always the same
- Image upload via FormData API and AJAX is not working ($_FILES always empty)
- Save Search System
- dynamic dependent select dropdown
- Change “add to cart” button color based on Woocommerce product category [closed]
- How to add a do_action on refreshing of WP customizer?
- How to pass Select value from Javascript to PHP to generate select option on change
- How to add a Custom Mailchimp AJAX Newsletter Subscribe Form
- Fancybox type popup window that’s not an iframe
- How do I Import / Upload Files with jQuery AJAX?
- How to add specific meta tags to head of cart and checkout pages in woocommerce?
- admin-ajax Firing Error 400 When Logged In
- get taxonomy thumbnail and use it as a variable in code
- HTML escaping data with ajax requests
- load ajax using admin-ajax.php
- Load Posts on Click via Ajax into a DIV
- AJAX wp_insert_user WORKS but responds with “The site is not enabled”
- Get related product based on subcategory selected from category id with ID 142
- Why i can’t get custom fields value or post ID via Ajax?
- Cannot access $wpdb, comes back NULL
- Submitting a form, using Ajax, to run a SQL Select query based on user input from the form
- Incrementing PHP variable onclick to display posts by month
- Accessing an API with jQuery and AJAX
- Ajaxurl suddenly not defined
- Ajax URLs without #!, how to prevent falling into single.php on load or reload?
- Change Query Arguments (filter) with jQuery/Ajax or PHP?
- How to use wp_send_json() and output the value with ajax?
- Using Ajax to submit a form, and run a SQL Select query based on user input from the form
- WordPress cascading dropdown selection search based on Parent Page & Child Page
- Display WordPress search results based on the selected Sub-Category
- Tracking Visitor LatLng with WordPress using JS, PHP. How to put data which was extract using JS into DB
- WordPress Search Ajax + Isotope + InfiniteScroll
- Creating a brand attribute as a variable
- duplicate posts with ajax load more wordpress
- Variation prices breakdown only for single product page
- Settings API form – submit with AJAX
- Woocommerce disable order item link (backend) [closed]
- Post form – AJAX won’t upload featured image – Plugin development
- Load more posts using AJAX based on posts inside WP_Query
- How to call my PHP function with AJAX ? wp_query
- Admin-ajax.php 404 error
- How can i find wrong word in search box and replace with correct word
- How to pass values from one function to the other using an array variable
- How to use wp_ajax_set_post_thumbnail?
- Update $wpdb query with AJAX
- WooCommerce REST API AJAX Auth – 401 response
- Change WooCommerce currency programmatically on AJAX request
- Filtering custom posts by using checkboxes for taxonomy in an ajax loop always gives server 500 error
- wordpress dependent dropdownlist using post type is not working
- How to call a function from functions.php with ajax?
- ajax polling with admin-ajax.php
- Custom Post type Ajax search results
- number of posts with “Load More”
- Ajax wordpress function showing source code in alert and not value of input field?
- How to send Ajax Call from frontend without using wp_localize_script in Theme
- Woocommerce variable products are being added to the card on the homepage (ajax)
- Find the method which AJAX GET calls
- A javascript function that simply runs a php function on the plugin
- Display text of price (minus 20%) on every product page in a sentence.
- Retrieve $_POST data to send to javascript without using localize script
- Execute PHP code in Javascript onclick
- Load php function with AJAX on modal window
- Add specific phrase after every product title including the discounted price? [closed]
- Ajax Load More or View More functionality for woocommerce category layout by template overriding
- Woocommerce – Include custom user meta in order ‘filter by registered customer’ Ajax search
- How can I use AJAX in child theme template?
- I got this error POST https://localhost/meraboilerwp/[object%20Object] 404 (Not Found)
- Start a long running PHP process via JS/Ajax and monitor progress on admin page
- Retrive the value of the Active variation of the product and then link it to the “read more” to dynamically change
- Woocommerce product search result page layout
- How to make this shortcode not refresh the whole page when i use it on frontend
- Woocommerce – how can i add items to cart using onclick – multiple items at once with custom prices