Page 1 of 1

Quick Cache with a theme switcher

PostPosted: September 9th, 2010, 4:00 pm
by accessbydesign
Hi there, thank you for developing the plugin, it works very well. However, we provide 4 or 5 different styles on all of our websites (large print, high contrast etc..) and switch themes using a php commmand such as:

Code: Select all
http://www.website.com/wp-content/themes/abd/includes/library/plugins/php_switcher/style.php?id=2


This switches over the stylesheet. However, cached files are still being served and the style does not get changed with the plugin activated. Is there a command I can add to the above line that will stop cached files being served? The same way that cached files are not served if the user is logged in?

This would be completely brilliant if this was possible as not being able to cache is a becoming real problem.

Hope you can help?

Many thanks and all the best to you

Clive

Re: Quick Cache with a theme switcher

PostPosted: September 29th, 2010, 8:48 am
by Jason Caldwell
Hi Clive. Yes, you can add this to the end of a URL to prevent caching,
and this will override any pre-configured options for your Quick Cache installation.
Code: Select all
?qcAC=0
( e.g. Quick Cache / Allow Cache = 0 )

Re: Quick Cache with a theme switcher

PostPosted: September 29th, 2010, 3:14 pm
by accessbydesign
Hi Jason, thank you very much for your reply, I can't believe it's as easy as that, fantastic! I am going to try this immediately!

I'll report back, thanks again!

Best wishes

Clive