orca-wpmu / wp-hummingbird Goto Github PK
View Code? Open in Web Editor NEWHummingbird Speed Optimization for WordPress Multisites - based on wpmudev
License: GNU General Public License v2.0
Hummingbird Speed Optimization for WordPress Multisites - based on wpmudev
License: GNU General Public License v2.0
Used https://www.xml-sitemaps.com/validate-xml-sitemap.html to check the sitemap and got:
Incorrect http header content-type: "text/html; charset=UTF-8" (expected: "application/xml")
Google too refuses sitemap when Hummingbird page cache is enabled
Beginning XML files with a comment technically isn't valid XML and will fail when parsed through many XML parsing packages (such as PHP's SimpleXMLElement object). Having the preg_replace comment prior to parsing XML files as a workaround.
First of all, thank you for the excellent performance plugin. It is my favorite.
Hummingbird currently has the ability to take into consideration the cookies when generating cached pages in the get_cookies()
function.
I would like to add my own cookie into the list used to generate the hash. I think it would be a great addition the list of cookies could be updated/customizable from the admin interface similar to the Exclusion section.
foreach ( (array) $_COOKIE as $key => $value ) { // Input var ok.
// Check password protected post, comment author, logged in user.
if ( preg_match( '/^wp-postpass_|^comment_author_|^wordpress_logged_in_/', $key ) ) {
self::log_msg( 'Found cookie: ' . $key );
$cookie_value .= $_COOKIE[ $key ] . ','; // Input var ok.
}
}
This can be be customizable '/^wp-postpass_|^comment_author_|^wordpress_logged_in_/'
This would be useful when running special campaigns and would like to provide alternate information on the same page using a campaign tracking cookie.
Thanks again
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.