• Resolved ofer

    (@ofernandez)


    My page displays a prohibited error due to invalidation of the nonce code.
    I got in touch with my wp-rocket cache plugin and was told that: you can contact the developer of Rate-my-Post-WP-Rating plugin to support caching via AJAX-ed via a JS.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Blaz K.

    (@blazk)

    Hi @ofernandez,

    does this also happen if you set cache expiry to 10 hours as suggested here: https://docs.wp-rocket.me/article/975-nonces-and-cache-lifespan

    Blaz

    Thread Starter ofer

    (@ofernandez)

    Cache expiration in 10 hours is only a recommendation.

    I don’t create new content regularly on my website. So it does not help me to put the cache to 10 hours. I need it in 48 hours or more.

    Also, for a long time my page has worked normally with the same settings. I don’t understand why these problems are happening now.

    any solution please?

    Plugin Support Blaz K.

    (@blazk)

    Rate my Post requires cache expiry to be set to 24 hours or less, as most other WP plugins that handle frontend submission of some sort. The only bypass is to increase nonce lifetime to match you cache expiry time. More about this here: https://codex.www.ads-software.com/WordPress_Nonces#Modifying_the_nonce_lifetime

    Regards,
    Blaz

    Thread Starter ofer

    (@ofernandez)

    it has never been necessary to change the useful life of the nonce. Why should I do it now? it is a problem of its complement.
    I have been with my website for several years and this is the first time this has happened.

    there should be a logical explanation.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘nonces and forbidden error’ is closed to new replies.