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

    (@giuse)

    Hi @amirhossein7

    thank you for reporting this issue.
    It looks like wpDiscuz uses its own Ajax file instead of the WordPress core file wp-admin/admin-ajax.php.
    As I see in the code or the plugin they practically mimed the file wp-admin/admin-ajax.php.
    At line 10 of their file wpdiscuz-ajax.php they are loading the WordPress environment with wp-load.php.
    The rewrite rules are probably flushed during the WordPress environment load. FDP in this case is not really able to understand precisely when they are flushed. It only detected wpDiscuz as the cause.

    I’ve tested wpDiscuz on my installation but I was not able to reproduce the same issue.

    Do you have any idea what happens before FDP saves that message? I mean, do you write a comment? Do you save the settings of wpDiscuz? If so, which setting? Does maybe wpDiscuz send an email? Whatever action you have doubts about, please let me know. So I can try to reproduce the same issue.

    Another question. Do you notice any performance loss?

    Whatever it is the cause of the issue, it probably happens only during an Ajax request managed by wpDiscuz. I don’t think it has an impact on the performance when you visit a page. However, It may have an impact on the performance of the wpDiscuz actions. Have you noticed losses of performance?

    Have a great day!

    Jose

    Thread Starter amirhossein7

    (@amirhossein7)

    New Issue with the rewrite rules

    Plugin Author Jose

    (@giuse)

    Hi @amirhossein7

    this time it’s clear. The plugin Headers Security Advanced Hsts WP flushes the rewrite rules with the function $wp_rewrite->flush_rules();

    In the main file of the plugin they have this line:

    add_action('wp_loaded', 'hsts_plugin_flush_rewrite_rules');

    The function is that one that you see in the FDP notification:

    function hsts_plugin_flush_rewrite_rules(): void {
    global $wp_rewrite;
    if ( $wp_rewrite instanceof WP_Rewrite ) {
    $wp_rewrite->flush_rules();
    }
    }

    This means every time you visit a page the plugin flushes the rewrite rules. This is a big loss in terms of performance.
    I’ve right now opened a thread on their support. You can follow it here: https://www.ads-software.com/support/topic/flushing-of-the-rewrite-rules-on-every-page-load/

    Have a great day!

    Jose

    Plugin Author Jose

    (@giuse)

    Hi @amirhossein7

    as you can see on the other thread, you can update Header Security Advanced Hsts WP to the latest version 5.0.39. The author solved the issue about the rewrite rules.

    If you have time let me know if you have news about wpDisuz. Especially, if you noticed any performance loss.

    Have a great day!

    Jose

    Thread Starter amirhossein7

    (@amirhossein7)

    Thank you very much for your follow up to fix this problem. I just updated the Headers Security Advanced Hsts WP plugin to the latest version and this problem is solved.


    Yes, I will continue to monitor the performance of the wpDisuz plugin and will inform you immediately of any new news, especially if I notice any performance loss.
    Without exaggeration, I say that the best WordPress plugin that is related to the performance of the site and that I have used until today was the unique plugin Freesoul Deactivate Plugins.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.