<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Create a custom cron]]></title><description><![CDATA[<p dir="auto">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:</p>
<pre><code>&lt;?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();
}
</code></pre>
<p dir="auto">And make this cron job:</p>
<pre><code>wget -q -O - http://yourdomain.com/my-file-name.php?doing_wp_cron &gt;/dev/null 2&gt;&amp;1
</code></pre>
<p dir="auto">I 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.</p>
<p dir="auto">Can you help me with this issue?</p>
]]></description><link>https://forum.cloudron.io/topic/2757/create-a-custom-cron</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Jul 2026 01:15:01 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/2757.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 02 Jul 2020 09:42:12 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Create a custom cron on Fri, 03 Jul 2020 19:47:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/vladimir" aria-label="Profile: Vladimir">@<bdi>Vladimir</bdi></a> Indeed. This solution is documented in the Managed WP docs and not in the unmanaged one - <a href="https://cloudron.io/documentation/apps/wordpress/#cron-tasks" target="_blank" rel="noopener noreferrer nofollow ugc">https://cloudron.io/documentation/apps/wordpress/#cron-tasks</a> . I will fix it up.</p>
]]></description><link>https://forum.cloudron.io/post/10266</link><guid isPermaLink="true">https://forum.cloudron.io/post/10266</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Fri, 03 Jul 2020 19:47:03 GMT</pubDate></item><item><title><![CDATA[Reply to Create a custom cron on Fri, 03 Jul 2020 09:12:14 GMT]]></title><description><![CDATA[<p dir="auto">Just a fast update. I found a workaround with WP CRONTROL plugin, where I can add the PHP and make the cron.</p>
]]></description><link>https://forum.cloudron.io/post/10223</link><guid isPermaLink="true">https://forum.cloudron.io/post/10223</guid><dc:creator><![CDATA[Vladimir]]></dc:creator><pubDate>Fri, 03 Jul 2020 09:12:14 GMT</pubDate></item><item><title><![CDATA[Reply to Create a custom cron on Thu, 02 Jul 2020 12:12:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/imc67" aria-label="Profile: imc67">@<bdi>imc67</bdi></a> If the file doesn't exist - just make it. But that said, I do not believe the unmanaged app has cron, which is a shame</p>
]]></description><link>https://forum.cloudron.io/post/10182</link><guid isPermaLink="true">https://forum.cloudron.io/post/10182</guid><dc:creator><![CDATA[murgero]]></dc:creator><pubDate>Thu, 02 Jul 2020 12:12:22 GMT</pubDate></item><item><title><![CDATA[Reply to Create a custom cron on Thu, 02 Jul 2020 11:21:18 GMT]]></title><description><![CDATA[<p dir="auto">I have exactly the same situation and question!</p>
]]></description><link>https://forum.cloudron.io/post/10179</link><guid isPermaLink="true">https://forum.cloudron.io/post/10179</guid><dc:creator><![CDATA[imc67]]></dc:creator><pubDate>Thu, 02 Jul 2020 11:21:18 GMT</pubDate></item></channel></rss>