Forum Replies Created

Viewing 15 replies - 46 through 60 (of 73 total)
  • @everyone

    I’m only suggesting these solutions as a workaround until the author fixes what’s broken. this updated design is really bad for performance, especially if you use something like CloudFlare or Cloudflare Argo.

    @everyone

    CF7 version 5.4. has a conflict with caching combining/deferring Javascript. If you have WP-Rocket they have a fix. But that’s only half the problem. CF7 now uses nonces (security token) and it has to be refresh every 12 or 24 hours, which means you’ll have to clear your cache once or twice a day.

    Look down the forum and you’ll see tons of comments about this.

    Be forewarned that if you’re logged in as admin it may appear to work because you’re likely bypassing the cache. You either need to be logged out of WordPress or access the page through a web browser in private mode to test if it’s working for public users.

    @mariusz86)

    CF7 version 5.4. has a conflict with caching combining JavaScript and deferring Javascript. If you have WP-Rocket they have a fix. But that’s only half the problem. CF7 now uses nonces (security token) and it has to be refresh every 12 or 24 hours, which means you’ll have to clear your cache once or twice a day.

    Look down the forum and you’ll see tons of comments about this.

    Be forewarned that if you’re logged in as admin it will always work because you’re likely bypassing the cache. You either need to be logged out of WordPress or access it through a web browser in private mode to test if it’s working for other users.

    CF7 version 5.4. has a conflict with caching combining JavaScript and deferring Javascript. If you have WP-Rocket they have a fix. But that’s only half the problem. CF7 now uses nonces (security token) and it has to be refresh every 12 or 24 hours, which means you’ll have to clear your cache once or twice a day.

    Look down the forum and you’ll see tons of comments about this.

    • This reply was modified 5 years, 5 months ago by pca2014.

    This is the same problem I had. It’s all linked back to the same problem with “caching/deferring” JavaScript and “nonces”.

    I believe this specific problem is related to “deferring” JavaScript, provided you are not combining JavaScript files under minification. But if you’re still caching pages the page will become invalid after 24-hours and it will stop working anyway.

    For a lot of users, our forms are on Public pages that users are not logged into. Should nonces be used on Public pages?

    1. CF7 5.4 is incompatible with caching, specifically combining and deferring JavaScript files, which will cause a performance hit.

    2. CF7 use of “nonces” means a website has to be re-caches every 12 or 24-hours, I think? This will obviously cause a performance hit when using CloudFlare since all of the files have to be re-cache and with something like CloudFlare ARGO where the cache is distributed almost all of the benefit will be lost.

    The bottomline is that this is a hassle and bad for performance.

    Thread Starter pca2014

    (@pca2014)

    @takayukister

    1. CF7 5.4 is incompatible with caching, specifically combining and deferring JavaScript files, which will cause a performance hit.

    2. The use of “nonces” means a website has to be re-caches every 12 or 24-hours, I think? This will obviously cause a performance hit when using CloudFlare since all of the files have to be re-cache and with something like CloudFlare ARGO where the cache is distributed almost all of the benefit will be lost.

    The bottomline is that this is a hassle and bad for performance.

    Please make “nonces” optional and find a way to make CF7 compatible with caching.

    I have already rolled back to the previous version.

    Thanks!

    @takayukister

    1. CF7 5.4 is incompatible with caching, specifically combining and deferring JavaScript files, which will cause a performance hit.

    2. The use of “nonces” means a website has to be re-caches every 12 or 24-hours, I think? This will obviously cause a performance hit when using CloudFlare since all of the files have to be re-cache and with something like CloudFlare ARGO where the cache is distributed almost all of the benefit will be lost.

    The bottomline is that this is a hassle and bad for performance.

    Please make “nonces” optional and find a way to make CF7 compatible with caching.

    I have already rolled back to the previous version.

    Thanks!

    • This reply was modified 5 years, 5 months ago by pca2014.
    • This reply was modified 5 years, 5 months ago by pca2014.

    I’m guessing that’s because logged in uses bypass the cache. You can test by disable the cache. Even if that works the use of “nonces” by the developer will require you to recache the page probably every 12 hours for it to work, since the nonce will have to be updated. No matter what this will have a negative impact on performance especially if you’re using CloudFlare or something similar.

    Thread Starter pca2014

    (@pca2014)

    @billbordallo

    However, after a few hours the forms stop again. I am assuming the js scripts cannot be cached in version 5.4.

    I don’t think that’s the problem. It may have something to do with the use of “nonces”, which the CF7 author mentioned on their support forums. The problem with using “nonces” to enhance security is that the page will have to be re-chached every 12hours or so; I read that in my WP-Rocket documentation. Obviously that will heavily degrade the value of caching and the CF APO, which I am also using.

    FYI: Mine also broke after 12-hours because this, so I’m rolling back now. It’s not worth the performance burn.

    https://codex.wordpress.org/WordPress_Nonces

    • This reply was modified 5 years, 5 months ago by pca2014.
    Thread Starter pca2014

    (@pca2014)

    I didn’t exclude anything. I simply disabled these options and everything works. I did NOT disable minification. The one thing you didn’t mention is “Load JavaScript deferred”. Did you also try disabling that?

    In WP-Rocket under FILE OPTIMIZATIONS I had to disable the following options:

    1. “Combine JavaScript files”
    2. “Load JavaScript deferred”

    I’m not saying this is a solution, just a workaround until it’s fixed.

    • This reply was modified 5 years, 5 months ago by pca2014.

    This may not be related but CF7 v5.4 broke some of my website functions. If you are using a caching plugin, see my suggested below.

    Caching CF7 JavaScript can break the functionality of the form, animations and other things site wide.

    I’m using theme Enfold v5.8 and CF7 5.4 and WP-Rocket v3.8.5 for caching. – all the latest versions.

    In WP-Rocket under FILE OPTIMIZATIONS I had to disable the following options:

    1. Combine JavaScript files
    2. Load JavaScript deferred

    I assume similar settings in other caching programs will resolve the issue.

    I can exclude CF7 files from being combined or deferred but I don’t know which files those are. Could you tell me what CF7 JavaSCript files to exclude?

    @takayukister

    RESOLVED?

    I believe I’ve now identified the issue. Caching CF7 JavaScript can break the functionality of the form, animations and other things site wide. I’m using Enfold v5.8 and CF7 5.4 and WP-Rocket v3.8.5. – all the latest versions.

    In WP-Rocket under FILE OPTIMIZATIONS I had to disable the following options:

    1. Combine JavaScript files
    2. Load JavaScript deferred

    I assume similar settings in other caching programs will resolve the issue.

    I can exclude CF7 files from being combined or deferred but I don’t know which files those are. Could you tell me what CF7 JavaSCript files to exclude?

    NOTE: I’m still confused about the nonce requirement or if it affects me. I will followup and test again after 12 and 24 hours.

    • This reply was modified 5 years, 5 months ago by pca2014.
    • This reply was modified 5 years, 5 months ago by pca2014.
    • This reply was modified 5 years, 5 months ago by pca2014.

    I recached the website. Now when I submit a form it sends the email but the animation never completes are gives a confirmation.

    Wow, what a mess. CF7 clearly has issues with caching plugins that it didn’t have before.

    @takayukister

    “Which contact form on the site are you saying about? Seemingly none of your forms emits nonce.”

    Was this a requirement before CF7 5.4?

    As I understand it, a nonce would have to regenerated after every so many hours, which means re-caching the website to keep it current and degrading performance.

Viewing 15 replies - 46 through 60 (of 73 total)