WordPress --wpfc services restart


#1

For a site with --wpfc, what services need a restart to fully flush all caches?

Occasionally we’ve had trouble where caching is keeping some old code around, what services (and the specific commands) should we issue to fully restart nginx, fast-cgi, zend, etc – basically all services without resorting to shutdown -r now?

This last instance came up with a broken plugin and renaming the plugin directory didn’t help because some of the WordPress php files we’re still cached referencing the plugin. We had to reboot to flush it, so we’d like a process to flush this sort of thing without a reboot.

Cheers!


#2

@davidedwards, Hi to clear Nginx cache, you can use following command:

rm -rf /var/run/nginx-cache/*

Also, if you have configured W3TC, you can use Perforamance --> Empty all cache link available in wordpress admin panel.

In next release of EasyEngine we are adding a new command, ee clean with optional arguments to clear the cache. :smile:


#3

Hi,

Thanks very much!

With the site White Screen Of Death, there’d be no way to flush W3TC … does that rm command clear the fast cgi cache and zend cache, etc as well?

We tried to service nginx restart, php-fpm stop and memcached stop but our cached wp-settings was still hanging around.

That ee clean sounds great!

Cheers!


#4

@davidedwards

When we face White Screen Of Death we first remove w3TC files

cd /var/www/example.com/htdocs/wp-content/
rm -rf advanced-cache.php db.php object-cache.php w3tc-config

#5

Excellent, thanks for getting back to me on this, really appreciate it!


#6

Hello @davidedwards

Glad to know that. I hope your query is resolved.

I am closing this support topic for now. Feel free to create a new support topic if you have any queries further. :slight_smile:


#7