• Resolved Vijay Kumar

    (@vijaykumarim)


    Hello there,

    I really love using the plugin for database optimization and speed optimization. But recently I found that after enabling the cache it is not loading the ajax file as in this screenshot. I even enabled the Jquery file in the exception list of both minify and cache settings. But still unable to fetch the results. Here is the error message screenshot: https://prnt.sc/tt0n7d
    I will keep using the plugin with cache disabled until it is fixed. Please help
    Hope this helps.

    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi there,

    The status code shown is 403, which indicates an unauthorised action.
    This could be due to a cached and expired nonce.
    What is the context of the ajax request?

    Also what are the errors shown in the console tab?

    Marc.

    Thread Starter Vijay Kumar

    (@vijaykumarim)

    Here is the new fetch of the error messages: XHR: https://prnt.sc/tv0jyp
    and the screenshot of console error message: https://prnt.sc/tv0kgh

    It is only showing this error message when I am using the caching functionality.
    Users are unable to go through the navigation because of this error message.

    Hope this helps.

    Revert me back if needed any further help.

    Thank you

    So as I suspected, the issue is that the ajax request uses a “nonce” as a security check, which will expire after 12 to 24 hours, and break the functionality because it’s expired in the cache.

    What you can do is reduce the cache lifespan to a few hours to avoid this.

    Also note that this requests are causing performance issues on your server.
    By only hovering the menu several times (just moving the mouse), it brings your server down:

    screenshot

    So I’d recommend either contacting the support of the plugin or finding an other solution.

    Also the “nonce” is not actually necessary in this context.

    Marc.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘admin-ajax.php file not able to fetch after enabling cache’ is closed to new replies.