Am using W3TC from a long time but from past few weeks am stuck, as I can't see my edits working. It was all fine in past but from a week my edits in style.css reflects back in like an hour after.










closed as not constructive by Wyck, Brian Fegter, kaiser, Chris_O, fuxia Sep 30 '12 at 16:24

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. If this question can be reworded to fit the rules in the help center, please edit the question.


The best way I can think of is to add a unique string to the end of the stylesheet include to get everything to update.

For example, if you are including it in the header.php file:

<link rel="stylesheet" href="<?php echo get_stylesheet_uri(); ?><?php echo '?v='. time(); ?>" />

Of course that will keep it from being cached... ever. So you might want to turn it off and on. You could add a variable to activate it or you could tie it to wp_debug:

<link rel="stylesheet" href="<?php echo get_stylesheet_uri(); ?><?php if ( defined('WP_DEBUG') && ! WP_DEBUG ) echo '?v='. time(); ?>" />

Or just comment it out when you are done:

<link rel="stylesheet" href="<?php echo get_stylesheet_uri(); ?><?php #echo '?v='. time(); ?>" />

You can use all of those if you are enqueueing the styles as well.

  • I would be doing this as a last resort, Jake. What I was looking for is an answer if I have done some wrong settings in W3TC, thats why I attached those screenshots. – vajrasar Aug 23 '12 at 8:22

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