W3 Total Cache, RackSpace Cloud Files, and Forcing Downloads [closed]

This can be broken down to a simple task by adding a custom filter. You will need to add the following to the _send_request method within the CF_Http class in cloudfiles_http.php line 1283. $headers = $this->_make_headers($hdrs); //Add this line below $headers = apply_filters(‘cloudfiles_headers’, $headers, $url_path, $method); This will give you access to the headers from … Read more

WordPress Browser Cache with W3-Total-Cache doesn’t show new posts [closed]

There are two steps necessary to make sure that the browsers fetch the updated HTML pages (ex: home page). Step 1 Uncheck ‘Set expires header’ at your site’s wp-admin/admin.php?page=w3tc_browsercache#html_xml, for ‘HTML & XML’ files. Whenever a browser sees an Expires header, it (the browser) will fetch the next version of that particular HTML page only … Read more

Is it possible to disable caching of an option when using w3 total cache?

okay, here we go. try this: in your functions.php modify the behaviour of ai1ec_options: $ai1ec_options = get_option(‘ai1ec_options’); delete_option(‘ai1ec_options’); add_option(‘ai1ec_options’, $ai1ec_options, ”, ‘no’); // thanks for your suggestion 🙂 be careful though, as you might lose your set options, so be sure to get them from the database first. or create a backup option. afterwards, clear … Read more

Is W3 Total Cache still useful with CloudFlare? [closed]

W3TC is a framework. The intent is to optimize the origin (the stack the WordPress application runs on) and THEN what runs “on top” of it. A great discussion around that is available here: http://websynthesis.com/wsa/wp-content/uploads/2013/09/The-Truth-About-WordPress-Performance.pdf?utm_content=buffere8e5b&utm_source=buffer&utm_medium=twitter&utm_campaign=Buffer So yes, Cloudflare and other similar providers like Yotta and the like may apply browser caching policies, provide multiple edge … Read more

How to stop wordpress from changing default .htaccess permissions to 444

Your site has likely been hacked. My site had the Darkleech infection, which injected some malicious code into wp-includes/nav-menu.php, causing .htaccess to reset to 444 on any page load. I’d recommend you install the Sucuri plugin and let it restore any files that have been corrupted. Assuming your site was hacked, use their Post-Hack tab … Read more

Proper hook for W3TC defines, or dynamically disable w3 total cache [closed]

U could try using this type function: add_action( ‘wp_print_scripts’, ‘my_deregister_javascript’, 100 ); if ( !is_page(‘Events’) ) { wp_deregister_script( ‘wpng-calendar’ ); wp_deregister_script( ‘date-js’ ); wp_deregister_script( ‘thickbox-js’ ); wp_deregister_script( ‘jquery-js’ ); wp_deregister_script( ‘wiky-js’ ); } } Found it on this website U’ll have to modify the nandlers to your needs, i found the W3TC handlers to be: … Read more

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