• Hi,

    I love this caching plugin. However, I’m building a theme switching (dark, light) feature for one of my personal sites. As the site’s being cached, there doesn’t seem to be any way of making this possible via an HTML Class.

    So how the feature works is that basically, by default, it won’t have any options (will show default light theme). But once the user changes the dropdown option to Dark theme (saved to a Cookie), it’ll change to dark mode. I will check the cookie via jQuery and a class to the <body> tag.

    So is it possible to disable caching for the HTML Elements’ classes? Or is there any workaround for this?

    Please help – it’s much appreciated, and thanks for this great plugin!

    https://ww.wp.xz.cn/plugins/wp-super-cache/

The topic ‘Don't cache the HTML Elements' Classes’ is closed to new replies.