• Hello,

    I am not so experienced with cron jobs and hence I do not know how to run cron command for the preloader URL that is given in the back-end>Advanced tab of the plugin.
    Also, it seems that Hostinger’s hPanel does not support special characters in the cron-job command.
    How do I set up the cron-job for preloader in the hPanel of Hostinger? What is the URL or the command that I need to give for the cron job to execute? And what will be the most optimal interval for the cron job execution? P.S: I run a blog website that is regularly updated.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor iSaumya

    (@isaumya)

    Hi,
    first of all, if your hosting provider control panel does not support special characters in CRON job, then unfortunately there is nothing we can do much. You can contact them and ask them if they can add it manually from their end.

    That being said, please note that if you are using a limited resource shared server, where your site has good amount of traffic, it is better to disable preloader altogether. This is because preloader uses cURL behind the scene for fetching each page. Which each take some resource to execute so many cURL requests.

    If you have a site with good amount of traffic, you can disable preloader on a shared server.

    Thread Starter neo4evr

    (@neo4evr)

    Thank you so much for your detailed reply!

    So if I disable preloader, then will Cloudflare be able to automatically cache the posts and pages once the cache gets expired or purged from my end using this plugin?

    My aim is to keep the cache files always ready (on Cloudflare) for the visitors whenever possible.

    My second question is shall I enable fallback cache? Will it help in faster loading speeds? I am using WP-Optimize but the page cache is disabled on WP-Optimize plugin.

    • This reply was modified 3 years, 2 months ago by neo4evr.
    Plugin Contributor iSaumya

    (@isaumya)

    So if I disable preloader, then will Cloudflare be able to automatically cache the posts and pages once the cache gets expired or purged from my end using this plugin?

    – No. Once your cache gets expired or purged, if someone then request from that page lets say from London, then the request first will be handelled by your origin server and then will be cached to the London CF datacenter. From then on, anyone who request for the same page from Londion, those requests won’t reach to your server and instead will be served by the CF London datacenter. This will happen for all pages/requests.

    My aim is to keep the cache files always ready (on Cloudflare) for the visitors whenever possible.

    – In that case you need to use Argo with it’s smart tiered caching. Cause even if you enable preloader, and you preload that page, CF will only cache that page from the CF datacenter that handelled the request and not on every datacenter across the world.

    My second question is shall I enable fallback cache? Will it help in faster loading speeds? I am using WP-Optimize but the page cache is disabled on WP-Optimize plugin.

    – Yes you should enable fallback cache. As when fallback cache is enabled and that cache has been expired from the CF CDN then that request will come to the origin server and instead of WP executing the whole page to generate the HTML for that rerqust, it will be served by the fallback cache which will be way faster.

    P.S.: Please read this article: https://acnam.com/untold-truths-of-cloudflare-cdn/#cloudflare-cache-creation-replication-storage to understand how CF cache works under the hood.

    Thread Starter neo4evr

    (@neo4evr)

    Thank you once again for explaining this so wonderfully ??

    Thread Starter neo4evr

    (@neo4evr)

    I just enabled Fallback Cache and downloaded a log report.

    In the last line, it is written that
    [fallback_cache::fallback_cache_add_define_cache_wp_config] Constant WP_CACHE does not exists. I will try to add in into wp-config.php

    What does this message mean?
    Do I need to do something in the wp-config file?

    I can understand that this is diverting from the main topic. If you want I can post it as a new support topic.

    • This reply was modified 3 years, 2 months ago by neo4evr.
    Plugin Contributor iSaumya

    (@isaumya)

    No. It means that when fallback cache is enabled the plugin adds a constant WP_CACHE to true. That was not available so it added that to WP config.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to set up preloader cron-job?’ is closed to new replies.