• Resolved gohn122

    (@gohn122)


    Hello accidentally i enabled “Transient caching of parsed stylesheets” and now my wp_options is huge. Can you help me on how to disable it? I tried to find a solution everywhere and is crashing my site, i need all the time to optimize the database.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Milind More

    (@milindmore22)

    Hello @gohn122

    Thank you for contacting us, The CSS transients cache is created for AMP pages to reduce the server processing.

    Stopping CSS transients may result in slow AMP pages and an increase in Sever CPU usage.

    You can simply add the code snippet below in your child themes functions.php or in a custom plugin

    add_filter( 'amp_parsed_css_transient_caching_allowed', '__return_false' );

    Instead, I will recommend using Persistent object caching, please check our guide for object caching to learn more about it.

    We hope this helps!

    Thread Starter gohn122

    (@gohn122)

    Hello thank you for the fast response. I added the code to themes functions.php, cleared cache, database etc and still site health shows it as enabled, is it a bug on the sitehealth plugin or it didn’t change?

    Plugin Support Milind More

    (@milindmore22)

    Hello @gohn122

    You can ignore the site health message, if you add the code snippet the AMP CSS transients will be disabled.

    Plugin Support Milind More

    (@milindmore22)

    @gohn122 As we didn’t receive a response I’ll mark this as resolved. Feel free to open a new support topic if you require any further assistance.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.