Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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.

http://i.imgur.com/f3LwQ.png

http://i.imgur.com/rzydS.png

http://i.imgur.com/bMffA.png

http://i.imgur.com/XWniN.png

http://i.imgur.com/6cpnf.png

http://i.imgur.com/pBN0X.png

http://i.imgur.com/ZrJsP.png

http://i.imgur.com/4RaSj.png

http://i.imgur.com/B6w3o.png

share|improve this question
add comment

closed as not constructive by Wyck, Brian Fegter, kaiser, Chris_O, toscho 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.

1 Answer

up vote 1 down vote accepted

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.

share|improve this answer
    
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
add comment

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