<?xml version="1.0"?>
<rss version="2.0"><channel><title>Wordpress Latest Topics</title><link>https://www.alphagnu.com/forum/14-wordpress/</link><description>Wordpress Latest Topics</description><language>en</language><item><title>Wordpress and Caching.</title><link>https://www.alphagnu.com/topic/591-wordpress-and-caching/</link><description><![CDATA[<p>I hope this will help some one any advise is welcomed.</p><p>I have a VPS with 32g’s of ram, and 8 CPU’s. I use CWP on it to host 24 accounts for in-house domains I manage all running WordPress on low traffic websites. My main site has 17 active plugins and three that I activate on a per / use basis for wp-admin tasks only and it has the most traffic. So I have been using Nginx &amp; Varnish &amp; Apache using  WordPress as the Varnish default vhost template.</p><p>I am developing a WordPress Multi-site that I hope will gain traction. I have opened it up for registration for sites and memberships. So for the first time in years I looked at tweaking the server now before it grows larger and becomes more active with visitors / members. </p><p>For 3 years now I have not been using any caching plugins for WP except for the Redis official plugin. At one point a couple of years ago I enabled cache on all WP installations. Before too long I had caching errors and it happened again using W3 Total Cache plugin again selecting redis for object  / DB caching.</p><p>The issue is that I would be and some visitors served another domain / wordpress site on the this same server. </p><p>Security became a concern as I have /wp-admin/ rewritten to /”secret-admin”/ across all my sites on the server and I was getting served up login urls @ another site. As admin using the brave browser it is a struggle to clear out the cache on the client side and visitors like me and crawlers might have to wait a while for it to expire locally. On any event I loos site traffic and it sets of the search engines and browser warnings.</p><p>I did some quick research and by trial and error have come to the conclusion Opcode (APC-APCu) seems to be the right setting for the VPS (KVM).</p><p>W3TC suggested that I use Advanced Disk Caching option for a shared hosting environment - I first tried redis as it consistently gave the best performance gains according to the benchmark testing I did in the plugins initial setup and I thought W3TC would keep it from polluting other WP caches on the server. I tried memchached, it seemed to work well, php-fpm and mariadb calmed down quite alot. I then reconfigured W3 to use Opcode and so far it has outperformed memecached. </p><p><strong>My question is using Opcode (APC-APCu) instead of Advanced Disk Caching the right choice?</strong> </p><p>Technically each WP installation is in a shared server environment with different cwp user accounts and W3TC says that disk caching is the best option. </p><p><strong>Am I naive in thinking Opcode (APC-APCu) is safe and or the right choice given all the shared hosting sites are in house?</strong></p><p>Again I hope this helps someone and if you have feed back I look forward to hearing it.    </p><p></p><p></p>]]></description><guid isPermaLink="false">591</guid><pubDate>Tue, 11 Feb 2025 01:01:46 +0000</pubDate></item><item><title>Bulk clear Wp-rocket cache on your server for all accounts</title><link>https://www.alphagnu.com/topic/499-bulk-clear-wp-rocket-cache-on-your-server-for-all-accounts/</link><description><![CDATA[<p>Quick tip :</p><p>One line command to clear wp-rocket cache on all sites on server :</p><p>test it first (dry run) :</p><pre spellcheck="" class="ipsCode language-plaintext" data-language="Plain Text"><code>find /home -type d -name "wp-rocket" | while read -r dir; do cache_dir=$(dirname "$dir")/cache/wp-rocket; [ -d "$cache_dir" ] || cache_dir=$(dirname "$(dirname "$dir")")/cache/wp-rocket; [ -d "$cache_dir" ] &amp;&amp; echo "Clearing cache in $cache_dir" || echo "Cache directory not found in $dir"; done</code></pre><p><br> </p><p>run it live (clear the cache files )  :<br> </p><pre spellcheck="" class="ipsCode language-plaintext" data-language="Plain Text"><code>find /home -type d -name "wp-rocket" | while read -r dir; do cache_dir=$(dirname "$dir")/cache/wp-rocket; [ -d "$cache_dir" ] || cache_dir=$(dirname "$(dirname "$dir")")/cache/wp-rocket; [ -d "$cache_dir" ] &amp;&amp; echo "Clearing cache in $cache_dir" &amp;&amp; rm -rf "$cache_dir"/* || echo "Cache directory not found in $dir"; done</code></pre><p> </p>]]></description><guid isPermaLink="false">499</guid><pubDate>Sun, 07 Apr 2024 15:04:17 +0000</pubDate></item></channel></rss>
