Quick Cache with a theme switcher
Posted: September 9th, 2010, 4:00 pm
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:
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
- 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