• When I try to add this plugin it works fine. However when I turn on Caching (using wp-optimize) it seems the css breaks. I the background colors don’t load any more…what could be causing that? It’s when I turn on the js caching on wp-optimize.

    Can I safely exlcude this from the cache? what would i exclude?

    • This topic was modified 3 years, 11 months ago by rudtek.
Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Phil

    (@philsbury)

    Hi @rudtek,

    If Age Gate is disabled, does the CSS still break? It has in my local testing making it seem more of an issue with wp-optimise than age gate.

    If it works without age gate, I’ll dig a little deeper.

    Thanks
    Phil

    Thread Starter rudtek

    (@rudtek)

    all my css works with no caching. The only thing that breaks when i turn caching on (that I’ve found) is the agegate background colors.

    Plugin Author Phil

    (@philsbury)

    Hi @rudtek,

    But does the CSS work with caching enabled but with Age Gate disabled completely?

    Thanks
    Phil

    • This reply was modified 3 years, 11 months ago by Phil. Reason: typo
    Thread Starter rudtek

    (@rudtek)

    the only css that stops working is for the age gate plugin.

    Plugin Author Phil

    (@philsbury)

    Hi @rudtek,

    Oh, that’s interesting. Like I say, for me that plugin totally broke my assets. Do you have a link I can see?

    As you mention above you could exclude the age gate css, which is /wp-content/plugins/age-gate/public/css/age-gate-public.css

    Let me know if that works.

    As and aside, that path will change in Age Gate 3, but so too will how all the CSS works so may not be an issue.

    Thanks
    Phil

    Thread Starter rudtek

    (@rudtek)

    sure check out this link https:// redwood . rudtek . dev (I added spaces so there is no link)

    Plugin Author Phil

    (@philsbury)

    I see what’s happening. The Age Gate css is there, but the minified style from WP Optimise is being added after them, so overriding it.

    I think adding the Age Gate css above to the ignore list should fix it – it’s already minified so shouldn’t hit performance too hard.

    I’ll have to dig into their code to see if there’s a fix – but AG3 won’t have this issue as it’s all css variables.

    Try the ignoring thing and see it it works and I’ll see if I can find any ordering where they add the css.

    Thanks
    Phil

    Thread Starter rudtek

    (@rudtek)

    Thank you!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘issue with caching’ is closed to new replies.