• Resolved kniool

    (@kniool)


    Hi Everyone !

    I use simple custom css and fastest cache with this AMP Plugin.

    When i change some lines in my custom css, these changes doesn’t work on the amp-custom.css

    So how could i rebuild this amp-custom.css ?

    I tried to delete AMP plugin and reinstall it but it doesn’t work…

    Could someone help me ?

    Thanks in advance !

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

    (@westonruter)

    To confirm, you are using this plugin: https://ww.wp.xz.cn/plugins/simple-custom-css/

    The issue is likely due to the parsed CSS being cached. I’ll have to check to see how that plugin is adding the CSS to the page.

    As a quick fix, please try flushing all your transients.

    Thread Starter kniool

    (@kniool)

    Yes i confirm.

    Then how can i flush all of this ? i deleted the cache, delete AMP plugin but i can’t delete this amp-custom.css

    Where can i find it ?

    Thanks and sorry for the mistakes…

    Plugin Author Weston Ruter

    (@westonruter)

    There is no such file on the filesystem. It is created dynamically. The filename you see there is only present for the sake of DevTools in order to help with code coverage detection.

    Plugin Author Weston Ruter

    (@westonruter)

    Flushing the transients (and/or the object cache of you are using a persistent object cache) will delete the data used to generate the amp-custom CSS. The next time an AMP page is rendered it will re-parse then CSS to store in transients.

    Plugin Author Weston Ruter

    (@westonruter)

    I was able to reproduce the issue. I’ve opened a pull request to prevent this caching problem from happening in the future: https://github.com/johnregan3/simple-custom-css/pull/33

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Rebuil amp-custom.css’ is closed to new replies.