• Resolved deniseconway

    (@deniseconway)


    I’m seeing the following message in site health in relation to transient caching:

    Transient caching of parsed stylesheets is not used due to external object cache.

    On sites which have highly variable CSS and are not using a persistent object cache, the transient caching of parsed stylesheets may be automatically disabled in order to prevent a site from filling up its wp_options table with too many transients. Examples of highly variable CSS include dynamically-generated style rules with selectors referring to user IDs or elements being given randomized background colors. There are two filters which may be used to configure the CSS transient monitoring: amp_css_transient_monitoring_threshold and amp_css_transient_monitoring_sampling_range.

    Is this to be expected?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Weston Ruter

    (@westonruter)

    Yes. You should see the status along with that test being “good” and in blue.

    Since you have an external object cache, which is best for performance, the transients being stored won’t be filling up your options table, which was what this test detected in your previous support topic.

    Namely, it was due to the random CSS class names being generated.

    I made that workaround plugin to avoid that. But note that it only accounted for the cases that I saw on your homepage. There are other cases possible which I filed an issue for.

    The latest version of Gutenberg, 12.7, includes my fix. So what you can do is install and activate the latest version of Gutenberg, and uninstall my workaround plugin. The fix should be included in WordPress 5.9.2 as well. We’re also incorporating a fix in the AMP plugin itself for the next release.

    Plugin Support Milind More

    (@milindmore22)

    @deniseconway
    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 2 replies - 1 through 2 (of 2 total)
  • The topic ‘No Transient Caching’ is closed to new replies.