Skip to content

Latest commit

 

History

History
92 lines (66 loc) · 2.25 KB

README.md

File metadata and controls

92 lines (66 loc) · 2.25 KB

Fix W3TC (W3 Total Cache)

Fix and customize W3 Total Cache by @ftownes

Installation

  1. Deactivate official plugin from WP.org
  2. Delete plugin directory w3-total-cache by hand, DO NOT click "Delete" on Plugins page
  3. Unpack master in /wp-content/plugins/
  4. Rename the extracted directory from fix-w3tc-master to w3-total-cache
  5. Activate w3tc
  6. Check that it's working

Fix

  • Modernize deprecated WordPress code
  • Support PHP7 disallow reference arguments
  • Add APCu support (props. @nigrosimone)
  • Support OPcache
  • Support WOFF2 font format
  • Fix https caching
  • Halfdone CloudFlare support in trunk
  • Support AMP
  • Support Redis

And customize

  • Disable edge mode evaluation.reminder
  • Hide most widgets from W3TC Dashboard
  • Remove informational submenus $pages_tail
  • Remove contextual help w3tc_*
  • Make admin pages smaller #w3tc h2.logo { float: right; }
  • Remove HTML comment by hooking w3tc_can_print_comment
  • Disable EDD/licensing

Disabled submenus

  • FAQ
  • Support
  • Install
  • About

Disabled W3TC plugins

  • W3_Plugin_NewRelicAdmin
  • W3_Licensing

Disabled W3TC widgets

  • W3_Widget_SpreadTheWord
  • W3_Widget_News
  • W3_Widget_Forum
  • W3_Widget_MaxCDN
  • W3_Widget_NetDNA
  • W3_Widget_NewRelic

Mini CI

find -type f -name "*.php" -exec php -l "{}" ";"

Upstream

svn: https://plugins.svn.wordpress.org/w3-total-cache/

git: https://github.com/wp-plugins/w3-total-cache.git

PHP 7 support

In version 7.0.9 reference arguments were disallowed in call_user_func().

This is how to find them in the code:

grep -Fnr 'ob_callback(&$buffer)' w3-total-cache/*

Props. IT Nota

Alternatives