Forum Replies Created

Viewing 15 replies - 1 through 15 (of 23 total)
  • Thread Starter user9723764

    (@user9723764)

    Yeah, so bizarre. My guess is its related to the AIOS plugin. But odd that re-enabling the plugin and performing the same action still works. I will have to dig into what settings AIOS is implement. I take it, nobody has reported this specific issue with you in the past using AIOS plugin?

    Thread Starter user9723764

    (@user9723764)

    Thank you @emrevona . Yes, I’m using AIOS. I disabled it temporarily and attempted to removed/edit the rule and I was able to complete the action successfully.

    What action is your plugin taking when performing this action that AIOS would be blocking it. I assume it’s just removing or adding something to the WP Scheduler, which would be odd for AIOS to be blocking. Can you please share some details, so I can disable that feature in AIOS. I wonder if it’s also related to the preloader scheduler issue I’ve reported. I can update that support topic if it’s also the fix.

    UPDATE: Oddly, that worked, but once I reactivated AIOS plugin and it’s PHP firewall. I attempted to change the time out rules again, but had no problem. So I was able to change the rules with AIOS enabled. This I find odd. But at the same time, immediately after disabling AIOS, I was able to change the rule, but not before disabling. What does that mean?

    Thanks!

    • This reply was modified 6 months, 2 weeks ago by user9723764.
    Thread Starter user9723764

    (@user9723764)

    In case this helps. In the WP_options table, the option name of “WpFastestCachePreLoad” has this option_value:

    {“homepage”:-1,”post”:-1,”category”:-1,”page”:-1,”customposttypes”:40,”order”:”customposttypes”,”number”:”10″}

    Not sure if that’s helpful at all, but that’s the only option value I could tell that’s related to the preloader.

    Thread Starter user9723764

    (@user9723764)

    I was working with ChatGPT to confirm all settings are configured properly. Below is the final output. It even referenced this thread (crazy to see how ChatGPT references both it’s internal data and live website data now that is somehow already indexed).

    —–

    Ah, got it, thanks for the extra detail and the screenshot. You are absolutely right, my earlier assumption about it “just finishing” was wrong. With 5,600+ CPTs and a batch size of 10 it should be busy for a long time, and your / ?action=wpfastestcache&type=preload output clearly shows it is not complete when the cron job has already disappeared.

    What you are running into is almost certainly a bug in WP Fastest Cache’s WP-Cron based scheduling for Preload, not a problem with your WP-Cron setup:

    • WP-Cron itself is fine (other jobs run and you have a proper Hostinger cron hitting wp-cron.php every 5 minutes).
    • The plugin’s own preloader works perfectly when you hit the preload URL in the browser.
    • The wp_fastest_cache_Preload event is being unscheduled while the internal preload state still shows customposttypes: 0/5626 and page: 10/22.

    That matches exactly what you described in the ww.wp.xz.cn thread, and the plugin author’s only “solution” there was to use the manual preload URL via cron instead of relying on WP Schedule. ww.wp.xz.cn+1

    So, I would treat the built-in WP Schedule hook as unreliable in your case and shift to a host-level cron that calls the preload URL directly.

    —–

    I think I will just go with ignoring the plugin’s cron hook job and setup a manual cron job on Hostinger to call the preload URL. However, I wanted to inform you that it does seem as though there is some bug in the plugin code for how it’s handling the cron preload hook, which I assume you expect to be working. Prior to posting this last comment. I also completely uninstalled WP Fastest Cache, removed the cache folder and checked wp_options table to ensure nothing was leftover from WP Fastest Cache. I then reinstalled the plugin, enabled the same settings. Preload ran for about 5 or 6 times and then disappeared from the Cron Events scheduler. This happened, even before it started preloading the custom post types (it was in middle of Page content type). So something definitely appears to be broken with the preload cron job scheduler.

    I hope this detailed information is helpful to identify the cause and solution. Thanks!

    Thread Starter user9723764

    (@user9723764)

    Yep. That’s why I installed WP Crontrol to observe what was going on, as I couldn’t understand why the preload function suddenly stopped working. It was working just fine 2-3 weeks ago. All other Cron jobs appear to be working fine and I can confirm in the WP Crontrol plugin. It has a Cron Events and a Cron Schedules page where I can view all the different cron jobs scheduled by the active plugins.

    As I explained previously, immediately after I enable preload feature on WP Fastest Cache settings page, it will add the preload job to cron scheduler. After several runs however, it will then disappear from WP Schedule jobs.

    Here is screenshot of the Cron Events with Cache in the name. You can see the preload job scheduled.

    After several successful runs (every 5 minute cron job), it then drops out of the list as seen in the 2nd screenshot below.

    Screenshot 1:

    Screenshot 2:

    • This reply was modified 6 months, 3 weeks ago by user9723764.
    • This reply was modified 6 months, 3 weeks ago by user9723764.
    Thread Starter user9723764

    (@user9723764)

    I can of course setup a manual cron job to call the preloader URL every 5 minutes by using this: wget -O – “https://www.YOUR-URL.com/?action=wpfastestcache&type=preload” >/dev/null 2>&1

    But I believe your plugin is using WP Schedule to add the hook to call preloader every 5 minutes via Cron. Your documentation states that the WP Schedule should handle it. That’s what I’m trying to say. It seems the preload job does not stay scheduled by WP Schedule. If this feature is broken and does not work anymore, then yes, I guess I will need to call the preload URL by setting a a manual cron job.

    Thread Starter user9723764

    (@user9723764)

    Yes, as I described at the top of this page. The preloader works just fine. I can run it (https://mywebsite.com/?action=wpfastestcache&type=preload) manually over and over again and it will preload all content.

    The issue appears to be that the “wp_fastest_cache_Preload” cron scheduled job that should run every 5 minutes, drops out of the scheduler after the first few runs. That’s why it stops loading the pages. I can manually load them by calling the preload URL directly.

    It was working (i.e., the wp_fastest_cache_Preload job would stay in the scheduled jobs and it ran for about 48 hours and was able to complete loading all 6000 pages of content. Just recently, I noticed that the wp_fastest_cache_Preload job was not showing up in the listed scheduled jobs.

    Thread Starter user9723764

    (@user9723764)

    Just a custom post type managed by the theme. The preloader works just fine to cache them. The issue is that the cron scheduler appears to be missing the wp_fastest_cache_Preload job. It only shows wp_fastest_cache_0 and wp_fastest_cache_1. The preload job seems to fall off after it has done the first few content types to cache.

    Then, the only thing left is these two:

    wp_fastest_cache_1

    [ “{\”prefix\”:\”all\”,\”content\”:\”all\”}” ]

    and

    wp_fastest_cache_0

    [ “{\”prefix\”:\”homepage\”,\”content\”:\”homepage\”,\”hour\”:\”7\”,\”minute\”:\”0\”}” ]

    Thread Starter user9723764

    (@user9723764)

    I’m still seeing this issue. Is anyone else having this issue and have you found the fix?

    For some reason, the “wp_fastest_cache_Preload” cron job, the one that gets added to the cron scheduler when enabling the preload function in the WP Fastest Cache settings, doesn’t stick in the cron scheduler. I’m using WP Crontrol plugin to observe the behavior. Once I enable the preload feature by unchecking and re-checking and then saving the settings, I then see the wp_fastest_cache_preload job added to the cron scheduler to run every 5 minutes. It will do it’s thing, but at some point, this job gets dropped from the cron scheduler (i.e., it’s no longer listed).

    Other bit of perhaps helpful information that may lead to identifying the bug, is that the preload feature seems to preload all the types I enabled (homepage, pages, posts, categories, and custom posts types), EXCEPT the custom posts types. When I check the preloader status after several hours, I will usually see that all the enabled content types have been preloaded except the custom posts types. That will show 0/5000 when I run https://mysite.com/?action=wpfastestcache&type=preload.

    And then when I see this, I go and check the WP Crontrol and I see that the wp_fasest_cache_Preload job is no longer listed in the list of scheduled cron jobs.

    So it appears the preload Cron job gets dropped once it loads all the other content types and doesn’t continue. This was working just fine for several weeks once I enabled it, and suddenly I started noticing the issue where my custom posts types not getting preloaded. The only thing I recently changed within the WP Fastest Cache plugin, was the order that the content types would preload. Within the preload settings pop up window, on the Content Types screen, you can drag and drop the order that the preload. I moved these around. So maybe it has something to do with that?

    Looking for help to get this working again. Thanks!

    Thread Starter user9723764

    (@user9723764)

    So it seems there was an issue. For some reason, the preload cache job wasn’t getting added to the WP Cron scheduler. I confirmed it by installing the WP Crontrol plugin. Having a quick look at that, confirmed that the job was not in the event list.

    I went back into the WP Fastest Cache admin page. Unchecked the preload checkbox and saved the settings. Then checked the preload checkbox again, the settings window popped up, I clicked through and then saved the settings.

    Went back to the WP Crontrol plugin’s event page and filtered on “cache” which then showed that the preload job was now scheduled. like below:

    wp_fastest_cache_Preload Edit | Run now | Pause this hook | Delete
    NowToday at 7:11 pmOnce Every 5 MinutesWpFastestCache->create_preload_cache()

    So it seems for some reason, the scheduler didn’t get added when it was previously shared. Must be some bug, but I have no idea how to reproduce the issue. But now that the job is scheduled, it’s getting called every 5 minutes when I run cron.

    Had I not installed WP Crontrol, I would have not been able to confirm this. If you run into the issue I describe above, try disabling preload, saving, re-enable, save, and then check to see if the cron action is scheduled.

    Thread Starter user9723764

    (@user9723764)

    Not sure what it was, but it does appear to have been an issue with Cloudflare caching and WP Fastest Cache. I think the behavior I was seeing above was also because of browser caching and/or rules that were lingering. I can no longer reproduce the issue.

    Thread Starter user9723764

    (@user9723764)

    One more piece of information. I’m pulling my hair out over this and can’t make sense of things.

    When I attempt to do the above steps via Chrome (standard), when it launches the Google authentication via this URL: https://accounts.google.com/o/oauth2/v2/auth/oauthchooseaccount?response_type=code&client_id=

    When I do the same attempt while in incognito mode, it launches the Google authentication via this URL: https://accounts.google.com/v3/signin/accountchooser?access_type=offline&client_id=

    Why is one using the v2 version and the other is using v3. v3, appears to be the one that gives me consistent results. When attempting in v2, it will do the other issue (where it seems as though it properly authenticates and then passes me back to the website, but the user doesn’t appear logged in).

    Thread Starter user9723764

    (@user9723764)

    Thanks Emre!

    Thread Starter user9723764

    (@user9723764)

    Thanks Emre! That’s unfortunate, but I appreciate your help. Is that just a normal practice now, or is there some alternative (meaning, could the plugin creator have coded it definitely so that this isn’t an issue, or this is an issue with simply AJAX and WordPress’s nonce system. And its just something that needs to be done if you are going to use Ajax and caching?

    Thread Starter user9723764

    (@user9723764)

    I see, and is that the only way? Do I understand correctly, the proposed solution is to set a cache timeout. This means that the entire website cache will be cleared every 10 hrs, correct? So page cache will be recreated everyday for pages that never change. Do I understand this correctly?

Viewing 15 replies - 1 through 15 (of 23 total)