• Resolved brateanu

    (@brateanu)


    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

    (@vmarko)

    Hello @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.