WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'd like to clarify several details about how w3 total cache works.

I'm using w3 total cache to combine multiple js files into one. I'm also setting expires headers from the browser tab to twenty days. Garbage collection interval is set to one day.

When the combined file is rebuilt due to garbage collection will the combined file name change if the js files haven't been changed? I guess it will not change as otherwise users won't be able to use the cached one.

If I modify one of the files will w3tc automatically detect it or do I need to clear the minify cache?

To sum up I am interested in which cases the combined file name changes and do I have to worry about clients using older version do to expires headers and how w3tc manages it.

share|improve this question

closed as off-topic by gmazzap, Mark Kaplun, Pieter Goosen, ialocin, Johannes Pille Aug 24 '14 at 11:37

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Your question should be specific to WordPress. Generic PHP/JS/HTML/CSS questions might be better asked at Stack Overflow or another appropriate site of the Stack Exchange network. Third party plugins and themes are off topic." – gmazzap, Mark Kaplun, Pieter Goosen, ialocin, Johannes Pille
If this question can be reworded to fit the rules in the help center, please edit the question.

Plugin is way too complex for me to follow code. :(

I can say that in practice after emptying minify cache both CSS and JS concatenated files are rebuilt with same name, using same numerical id.

So my educated guess would be that numerical id is tied to file contents, rather than being random or timestamp-ish.

Anyway it is probably best to contact plugin's developer and get first hand info. He is registered here ( Frederick Townes ), but not very active - so email or official WP forums are better for that.

share|improve this answer
thanks for your answer. Usually I get answer here quicker compared to WP forums. I'm still waiting for a reply there. – Giorgi Dec 16 '10 at 21:00

Not the answer you're looking for? Browse other questions tagged or ask your own question.