Title: W3TC get query string variable
Last modified: October 20, 2020

---

# W3TC get query string variable

 *  Resolved [brateanu](https://wordpress.org/support/users/brateanu/)
 * (@brateanu)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/w3tc-get-query-string-variable/)
 * Hi guys,
 * Me as a developer I want to get the query string variable from static resources
   and output it manually in the other part of the site.
 * For example I would like to add this query string variable (for ex: x44251) to
   a custom harcoded link:
    <link preload href=”something.ttf<?php echo $query_string_variable;?
   >” as=”font”>
 * Why I want this variable dynamic? Because everytime I want to purge call caches,
   to update the new query string variable to this custom link from my header.
 * So basically my question it’s: How do I get this dynamic variable (query string)
   form W3TC?

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/w3tc-get-query-string-variable/#post-13556806)
 * Hello [@brateanu](https://wordpress.org/support/users/brateanu/)
    Thank you for
   your inquiry and I am happy to assist you with this. The short answer is that
   you cannot do this. The Prevent caching of objects after settings change is there
   to ensure that whenever settings are changed, a new query string will be generated
   and appended to objects allowing the new policy to be applied but only after 
   you Update the media query string. Thanks!

Viewing 1 replies (of 1 total)

The topic ‘W3TC get query string variable’ is closed to new replies.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

## Tags

 * [cashing](https://wordpress.org/support/topic-tag/cashing/)
 * [custom variable](https://wordpress.org/support/topic-tag/custom-variable/)
 * [query strings](https://wordpress.org/support/topic-tag/query-strings/)

 * 1 reply
 * 2 participants
 * Last reply from: [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/w3tc-get-query-string-variable/#post-13556806)
 * Status: resolved