Support » Plugin: W3 Total Cache » In which table is the w3tc data stored?

  • Resolved realmccoyzz

    (@realmccoyzz)


    I’m looking for query string data that will be updated when I run “Update media query string” on the w3tc_browser cache screen.

    This will update the query string for each media as shown below.

    https://sample.com/sample.jpg?a0000

    https://sample.com/sample.jpg?b1111

    I want to get the current query string, where is it stored?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @realmccoyzz

    Thank you for reaching out.
    I am not sure what the question is and what you are trying to achieve.
    Can you please clarify more?
    The current query string is added to the files.
    Thanks!

    Thread Starter realmccoyzz

    (@realmccoyzz)

    thank you @vmarko

    I want to get the query string currently in use as part of my private customization.
    I want to get and utilize the query string that W3TC has given to the media at the moment.

    For example, if W3TC gives it as shown below, I want to get “a0000”.
    https://sample.com/sample.jpg?a0000

    I think that W3TC stores and manages this query string “a0000” somewhere.

    Please tell me how to get the current query string.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @realmccoyzz

    Thank you for yoru feedback.
    W3TC does not store query strings. Those query strings are randomly generated once the “Update media Query” string is requested”
    If the option in Performance>Browser Cache> Prevent caching of objects after settings change is enabled, W3TC adds a random query string to static files.
    The current query string is the one added after the “Update media Query string” is performed.
    You can check this in w3-total-cache/BrowserCache_Core.php line 43 and w3-total-cache/

    browsercache.cssjs.replace
    browsercache.html.replace
    browsercache.other.replace

    Thanks!

    Thread Starter realmccoyzz

    (@realmccoyzz)

    thank you @vmarko

    After the “Update media Query string”, the same query string will continue to be given until the next “Update media Query string”.
    Isn’t W3TC saving this query string and granting it as appropriate?

    In any case, I would like to get the query string currently given.
    For example, can I get it from the html source code?

    • This reply was modified 3 months, 1 week ago by realmccoyzz.
    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @realmccoyzz

    Thank you for your feedback.
    You can check the current query string in the source of the website.
    For example, if the Prevent caching of objects after settings change is enabled for JS and CSS, you can see that all the CSS and JS files have the query string, minified or not, for example,
    https://yourwebsite.com/wp-content/cache/minify/e980c.js?x69412
    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.