<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title><![CDATA[AdminsForum - CloudPanel Varnish Cache & Performance Guides]]></title>
		<link>https://adminsforum.com/</link>
		<description><![CDATA[AdminsForum - https://adminsforum.com]]></description>
		<pubDate>Thu, 15 Oct 2026 06:08:03 +0000</pubDate>
		<generator>MyBB</generator>
		<item>
			<title><![CDATA[CloudPanel Cron Jobs, Logs and Varnish Cache: Complete Guide]]></title>
			<link>https://adminsforum.com/Thread-guide-cloudpanel-cron-jobs-logs-and-varnish-cache-complete-guide</link>
			<pubDate>Wed, 14 Oct 2026 21:10:14 +0800</pubDate>
			<dc:creator><![CDATA[<a href="https://adminsforum.com/member.php?action=profile&uid=1">JAY</a>]]></dc:creator>
			<guid isPermaLink="false">https://adminsforum.com/Thread-guide-cloudpanel-cron-jobs-logs-and-varnish-cache-complete-guide</guid>
			<description><![CDATA[<span style="font-size: large;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b">CloudPanel cron jobs, logs and Varnish Cache</span></span><br />
<br />
Three tools you'll use on every CloudPanel site: <span style="font-weight: bold;" class="mycode_b">cron jobs</span> for scheduled tasks, the <span style="font-weight: bold;" class="mycode_b">Logs</span> tab for troubleshooting, and <span style="font-weight: bold;" class="mycode_b">Varnish Cache</span> for fast page loads. Tested on CloudPanel 2.5.4, Ubuntu 24.04.<br />
<br />
<span style="font-size: medium;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b">Part 1: Cron jobs</span></span><br />
Open the site's <span style="font-weight: bold;" class="mycode_b">Cron Jobs</span> tab and click <span style="font-weight: bold;" class="mycode_b">Add Cron Job</span>. The <span style="font-weight: bold;" class="mycode_b">Template</span> menu fills in common schedules for you, from every minute to once a month, or you can type the five fields yourself: minute, hour, day, month and weekday.<br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://adminsforum.com/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=305" target="_blank" title="">g6-01-ae47.jpg</a> (Size: 98.57 KB / Downloads: 5)
<!-- end: postbit_attachments_attachment --><br />
<br />
<span style="font-weight: bold;" class="mycode_b">Example: a real cron for WordPress.</span> WordPress's built-in cron only runs when someone visits the site. Run it every 5 minutes with real cron instead:<ul class="mycode_list"><li>Template: <span style="font-weight: bold;" class="mycode_b">Every 5 minutes</span> (<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>*/5 * * * *</code></div></div>)<br />
</li>
<li>Command:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>php /home/SITE_USER/htdocs/YOUR_DOMAIN/wp-cron.php &gt; /dev/null 2&gt;&amp;1</code></div></div></li>
</ul>
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://adminsforum.com/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=306" target="_blank" title="">g6-02-ae48.jpg</a> (Size: 103.82 KB / Downloads: 5)
<!-- end: postbit_attachments_attachment --><br />
<br />
Then add this line to <span style="font-weight: bold;" class="mycode_b">wp-config.php</span> so WordPress doesn't also run it on page loads:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>define('DISABLE_WP_CRON', true);</code></div></div><br />
The job is saved and runs <span style="font-weight: bold;" class="mycode_b">as the site user</span>, with exactly the same permissions as the website.<br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://adminsforum.com/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=307" target="_blank" title="">g6-03-ae52.jpg</a> (Size: 101.13 KB / Downloads: 5)
<!-- end: postbit_attachments_attachment --><br />
<br />
<span style="font-size: medium;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b">Part 2: Logs</span></span><br />
When something breaks, open the <span style="font-weight: bold;" class="mycode_b">Logs</span> tab. Choose the source (<span style="font-weight: bold;" class="mycode_b">NGINX</span> or <span style="font-weight: bold;" class="mycode_b">PHP</span>), the file (<span style="font-weight: bold;" class="mycode_b">access</span> or <span style="font-weight: bold;" class="mycode_b">error</span>) and how many lines to show, then click <span style="font-weight: bold;" class="mycode_b">Update</span>.<br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://adminsforum.com/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=308" target="_blank" title="">g6-04-ae50.jpg</a> (Size: 148.44 KB / Downloads: 5)
<!-- end: postbit_attachments_attachment --><br />
<br />
Each access-log line is one request: time, visitor IP, URL and status code. In our screenshot, a bot was probing for <span style="font-weight: bold;" class="mycode_b">.env</span> files (which can contain secrets) minutes after the site went live. That's normal on the internet, and a good reason to block bad bots in the site's Security tab.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Troubleshooting tip:</span> for 500 errors or blank pages, check the <span style="font-weight: bold;" class="mycode_b">PHP error log</span> first; for 404s and redirects, the <span style="font-weight: bold;" class="mycode_b">Nginx access log</span>.<br />
<br />
<span style="font-size: medium;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b">Part 3: Varnish Cache</span></span><br />
Varnish stores finished pages in memory, so repeat visitors are served without running PHP at all. It's <span style="font-weight: bold;" class="mycode_b">off by default</span>; switch it on per site in the <span style="font-weight: bold;" class="mycode_b">Varnish Cache</span> tab.<ul class="mycode_list"><li><span style="font-weight: bold;" class="mycode_b">Cache Lifetime:</span> how long pages are kept.<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">Excluded Params:</span> requests with these parameters bypass the cache (for example sessions).<br />
</li>
</ul>
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://adminsforum.com/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=309" target="_blank" title="">g6-05-ae39.jpg</a> (Size: 103.92 KB / Downloads: 5)
<!-- end: postbit_attachments_attachment --><br />
<br />
<span style="font-weight: bold;" class="mycode_b">When to use it:</span> Varnish is a big win for blogs and content sites. For shops and member areas, test carefully: logged-in pages must never be cached for everyone. For WordPress, CloudPanel's <span style="font-weight: bold;" class="mycode_b">CLP Varnish Cache</span> plugin clears the cache when you publish.<br />
<br />
Questions? Ask in <span style="font-weight: bold;" class="mycode_b">CloudPanel Varnish Cache &amp; Performance Support</span>.<br />
<br />
<span style="font-size: medium;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b">CloudPanel guide series</span></span><br />
<ol type="1" class="mycode_list"><li><a href="https://adminsforum.com/Thread-guide-what-is-cloudpanel-complete-overview-of-the-free-hosting-control-panel-2026" target="_blank" rel="noopener" class="mycode_url">What is CloudPanel? Complete overview</a><br />
</li>
<li><a href="https://adminsforum.com/Thread-guide-cloudpanel-system-requirements-2026-os-cpu-ram-disk-and-ports" target="_blank" rel="noopener" class="mycode_url">CloudPanel system requirements</a><br />
</li>
<li><a href="https://adminsforum.com/Thread-guide-cloudpanel-features-the-complete-list-2026" target="_blank" rel="noopener" class="mycode_url">CloudPanel features: the complete list</a><br />
</li>
<li><a href="https://adminsforum.com/Thread-guide-how-to-create-a-php-site-in-cloudpanel-step-by-step-2026" target="_blank" rel="noopener" class="mycode_url">How to create a PHP site</a><br />
</li>
<li><a href="https://adminsforum.com/Thread-guide-how-to-install-a-free-let-s-encrypt-ssl-certificate-in-cloudpanel" target="_blank" rel="noopener" class="mycode_url">How to install free Let's Encrypt SSL</a><br />
</li>
<li><a href="https://adminsforum.com/Thread-guide-how-to-install-wordpress-in-cloudpanel-one-click-setup-guide" target="_blank" rel="noopener" class="mycode_url">How to install WordPress (one-click)</a><br />
</li>
<li><a href="https://adminsforum.com/Thread-guide-cloudpanel-databases-create-a-database-users-and-use-phpmyadmin" target="_blank" rel="noopener" class="mycode_url">Databases, users and phpMyAdmin</a><br />
</li>
<li><a href="https://adminsforum.com/Thread-guide-cloudpanel-ssh-sftp-ftp-and-file-manager-how-to-upload-files" target="_blank" rel="noopener" class="mycode_url">SSH, SFTP, FTP and File Manager</a><br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">Cron jobs, logs and Varnish Cache</span> (you are here)<br />
</li>
<li><a href="https://adminsforum.com/Thread-guide-cloudpanel-backups-and-security-remote-backups-firewall-and-basic-auth" target="_blank" rel="noopener" class="mycode_url">Backups, firewall and Basic Auth</a><br />
</li>
</ol>
]]></description>
			<content:encoded><![CDATA[<span style="font-size: large;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b">CloudPanel cron jobs, logs and Varnish Cache</span></span><br />
<br />
Three tools you'll use on every CloudPanel site: <span style="font-weight: bold;" class="mycode_b">cron jobs</span> for scheduled tasks, the <span style="font-weight: bold;" class="mycode_b">Logs</span> tab for troubleshooting, and <span style="font-weight: bold;" class="mycode_b">Varnish Cache</span> for fast page loads. Tested on CloudPanel 2.5.4, Ubuntu 24.04.<br />
<br />
<span style="font-size: medium;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b">Part 1: Cron jobs</span></span><br />
Open the site's <span style="font-weight: bold;" class="mycode_b">Cron Jobs</span> tab and click <span style="font-weight: bold;" class="mycode_b">Add Cron Job</span>. The <span style="font-weight: bold;" class="mycode_b">Template</span> menu fills in common schedules for you, from every minute to once a month, or you can type the five fields yourself: minute, hour, day, month and weekday.<br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://adminsforum.com/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=305" target="_blank" title="">g6-01-ae47.jpg</a> (Size: 98.57 KB / Downloads: 5)
<!-- end: postbit_attachments_attachment --><br />
<br />
<span style="font-weight: bold;" class="mycode_b">Example: a real cron for WordPress.</span> WordPress's built-in cron only runs when someone visits the site. Run it every 5 minutes with real cron instead:<ul class="mycode_list"><li>Template: <span style="font-weight: bold;" class="mycode_b">Every 5 minutes</span> (<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>*/5 * * * *</code></div></div>)<br />
</li>
<li>Command:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>php /home/SITE_USER/htdocs/YOUR_DOMAIN/wp-cron.php &gt; /dev/null 2&gt;&amp;1</code></div></div></li>
</ul>
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://adminsforum.com/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=306" target="_blank" title="">g6-02-ae48.jpg</a> (Size: 103.82 KB / Downloads: 5)
<!-- end: postbit_attachments_attachment --><br />
<br />
Then add this line to <span style="font-weight: bold;" class="mycode_b">wp-config.php</span> so WordPress doesn't also run it on page loads:<br />
<div class="codeblock"><div class="title af-code-title"><span>Code:</span><button type="button" class="af-code-copy" aria-label="Copy code" title="Copy code"><i class="far fa-copy" aria-hidden="true"></i><span>Copy</span></button><span class="af-code-status" role="status" aria-live="polite"></span></div><div class="body" dir="ltr"><code>define('DISABLE_WP_CRON', true);</code></div></div><br />
The job is saved and runs <span style="font-weight: bold;" class="mycode_b">as the site user</span>, with exactly the same permissions as the website.<br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://adminsforum.com/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=307" target="_blank" title="">g6-03-ae52.jpg</a> (Size: 101.13 KB / Downloads: 5)
<!-- end: postbit_attachments_attachment --><br />
<br />
<span style="font-size: medium;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b">Part 2: Logs</span></span><br />
When something breaks, open the <span style="font-weight: bold;" class="mycode_b">Logs</span> tab. Choose the source (<span style="font-weight: bold;" class="mycode_b">NGINX</span> or <span style="font-weight: bold;" class="mycode_b">PHP</span>), the file (<span style="font-weight: bold;" class="mycode_b">access</span> or <span style="font-weight: bold;" class="mycode_b">error</span>) and how many lines to show, then click <span style="font-weight: bold;" class="mycode_b">Update</span>.<br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://adminsforum.com/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=308" target="_blank" title="">g6-04-ae50.jpg</a> (Size: 148.44 KB / Downloads: 5)
<!-- end: postbit_attachments_attachment --><br />
<br />
Each access-log line is one request: time, visitor IP, URL and status code. In our screenshot, a bot was probing for <span style="font-weight: bold;" class="mycode_b">.env</span> files (which can contain secrets) minutes after the site went live. That's normal on the internet, and a good reason to block bad bots in the site's Security tab.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Troubleshooting tip:</span> for 500 errors or blank pages, check the <span style="font-weight: bold;" class="mycode_b">PHP error log</span> first; for 404s and redirects, the <span style="font-weight: bold;" class="mycode_b">Nginx access log</span>.<br />
<br />
<span style="font-size: medium;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b">Part 3: Varnish Cache</span></span><br />
Varnish stores finished pages in memory, so repeat visitors are served without running PHP at all. It's <span style="font-weight: bold;" class="mycode_b">off by default</span>; switch it on per site in the <span style="font-weight: bold;" class="mycode_b">Varnish Cache</span> tab.<ul class="mycode_list"><li><span style="font-weight: bold;" class="mycode_b">Cache Lifetime:</span> how long pages are kept.<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">Excluded Params:</span> requests with these parameters bypass the cache (for example sessions).<br />
</li>
</ul>
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://adminsforum.com/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=309" target="_blank" title="">g6-05-ae39.jpg</a> (Size: 103.92 KB / Downloads: 5)
<!-- end: postbit_attachments_attachment --><br />
<br />
<span style="font-weight: bold;" class="mycode_b">When to use it:</span> Varnish is a big win for blogs and content sites. For shops and member areas, test carefully: logged-in pages must never be cached for everyone. For WordPress, CloudPanel's <span style="font-weight: bold;" class="mycode_b">CLP Varnish Cache</span> plugin clears the cache when you publish.<br />
<br />
Questions? Ask in <span style="font-weight: bold;" class="mycode_b">CloudPanel Varnish Cache &amp; Performance Support</span>.<br />
<br />
<span style="font-size: medium;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b">CloudPanel guide series</span></span><br />
<ol type="1" class="mycode_list"><li><a href="https://adminsforum.com/Thread-guide-what-is-cloudpanel-complete-overview-of-the-free-hosting-control-panel-2026" target="_blank" rel="noopener" class="mycode_url">What is CloudPanel? Complete overview</a><br />
</li>
<li><a href="https://adminsforum.com/Thread-guide-cloudpanel-system-requirements-2026-os-cpu-ram-disk-and-ports" target="_blank" rel="noopener" class="mycode_url">CloudPanel system requirements</a><br />
</li>
<li><a href="https://adminsforum.com/Thread-guide-cloudpanel-features-the-complete-list-2026" target="_blank" rel="noopener" class="mycode_url">CloudPanel features: the complete list</a><br />
</li>
<li><a href="https://adminsforum.com/Thread-guide-how-to-create-a-php-site-in-cloudpanel-step-by-step-2026" target="_blank" rel="noopener" class="mycode_url">How to create a PHP site</a><br />
</li>
<li><a href="https://adminsforum.com/Thread-guide-how-to-install-a-free-let-s-encrypt-ssl-certificate-in-cloudpanel" target="_blank" rel="noopener" class="mycode_url">How to install free Let's Encrypt SSL</a><br />
</li>
<li><a href="https://adminsforum.com/Thread-guide-how-to-install-wordpress-in-cloudpanel-one-click-setup-guide" target="_blank" rel="noopener" class="mycode_url">How to install WordPress (one-click)</a><br />
</li>
<li><a href="https://adminsforum.com/Thread-guide-cloudpanel-databases-create-a-database-users-and-use-phpmyadmin" target="_blank" rel="noopener" class="mycode_url">Databases, users and phpMyAdmin</a><br />
</li>
<li><a href="https://adminsforum.com/Thread-guide-cloudpanel-ssh-sftp-ftp-and-file-manager-how-to-upload-files" target="_blank" rel="noopener" class="mycode_url">SSH, SFTP, FTP and File Manager</a><br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">Cron jobs, logs and Varnish Cache</span> (you are here)<br />
</li>
<li><a href="https://adminsforum.com/Thread-guide-cloudpanel-backups-and-security-remote-backups-firewall-and-basic-auth" target="_blank" rel="noopener" class="mycode_url">Backups, firewall and Basic Auth</a><br />
</li>
</ol>
]]></content:encoded>
		</item>
	</channel>
</rss>