Create a custom cron
-
Hello! I have been using Cloudron for over a month now and I am very happy with it. Recently I have installed the WP Rocket caching plugin and I have to make a cron task that clears the cache and triggers the preload. WP Rockets suggests to make a php file (my-file-name.php) in the Wordpress directory with this content:
<?php // Load WordPress. require( 'wp-load.php' ); // Clear cache. if ( function_exists( 'rocket_clean_domain' ) ) { rocket_clean_domain(); } // Preload cache. if ( function_exists( 'run_rocket_sitemap_preload' ) ) { run_rocket_sitemap_preload(); }And make this cron job:
wget -q -O - http://yourdomain.com/my-file-name.php?doing_wp_cron >/dev/null 2>&1I read that Cloudron should have /app/data/crontab cron file but I could't find it. I am trying to run this cron task every day at 12:15 and 16:15.
Can you help me with this issue?
-
I have exactly the same situation and question!
-
@Vladimir Indeed. This solution is documented in the Managed WP docs and not in the unmanaged one - https://cloudron.io/documentation/apps/wordpress/#cron-tasks . I will fix it up.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login