W3 Total Cache – Converting Apache rewrites to Nginx [closed]

Based on your comment, here’s the solution for an Nginx-Apache stack with “disk: enhanced” page cache method in W3 Total Cache plugin… location / { error_page 418 = @cachemiss; recursive_error_pages on; if ($request_method = POST) { return 418; } if ($query_string != “”) { return 418; } if ($request_uri ~* “(\/wp-admin\/|\/xmlrpc.php|\/wp-(app|cron|login|register|mail)\.php|wp-.*\.php|index\.php|wp\-comments\-popup\.php|wp\-links\-opml\.php|wp\-locations\.php)”) { return 418; } … Read more

Can I flush W3TC’s cache in a capistrano deploy? [closed]

As @andreascreten, wp-cli will do the job for you. wp-cli includes commands for W3TC (located in the src/php/wp-cli/commands/community/total-cache.php file), so you can flush the cache by running: $ wp total-cache flush <type> Where <type> is one of ‘db’, ‘minify’, ‘object’, ‘page’ or ‘post’. (Note: If you use ‘post’, you’ll need to pass in –post_id= or … Read more

How to hide W3 Total Cache from non admins?

You can try to use remove_menu_page(), so you code example would be like: function hide_w3tc() { if (!current_user_can(‘manage_network’)) { remove_menu_page(‘w3tc_dashboard’); } } add_action( ‘admin_menu’, ‘hide_w3tc’,11); where we use a priority greater than the default of 10, since the W3TC menu page is added via add_menu_page(‘Performance’, ‘Performance’, ‘manage_options’, ‘w3tc_dashboard’, ”, ‘div’);

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)