<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[52970] trunk: Taxonomy: Increase cache hits in `WP_Term_Query`.</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { white-space: pre-line; overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta" style="font-size: 105%">
<dt style="float: left; width: 6em; font-weight: bold">Revision</dt> <dd><a style="font-weight: bold" href="https://core.trac.wordpress.org/changeset/52970">52970</a><script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"Review this Commit","action":{"@type":"ViewAction","url":"https://core.trac.wordpress.org/changeset/52970","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>peterwilsoncc</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2022-03-21 03:53:33 +0000 (Mon, 21 Mar 2022)</dd>
</dl>
<pre style='padding-left: 1em; margin: 2em 0; border-left: 2px solid #ccc; line-height: 1.25; font-size: 105%; font-family: sans-serif'>Taxonomy: Increase cache hits in `WP_Term_Query`.
Increase the number of cache hits in `WP_Term_Query` by normalizing data included in the cache key.
Arguments that do not affect the SQL query, eg `update_term_meta_cache`, are removed from cache key generation. Arguments that are accepted in multiple formats, eg a string and an array, are normalized for both the cache key and the SQL query.
Props spacedmonkey.
Fixes <a href="https://core.trac.wordpress.org/ticket/55352">#55352</a>.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcwpincludesclasswptermqueryphp">trunk/src/wp-includes/class-wp-term-query.php</a></li>
<li><a href="#trunktestsphpunitteststermgetTermsphp">trunk/tests/phpunit/tests/term/getTerms.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcwpincludesclasswptermqueryphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-includes/class-wp-term-query.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/class-wp-term-query.php 2022-03-21 00:28:55 UTC (rev 52969)
+++ trunk/src/wp-includes/class-wp-term-query.php 2022-03-21 03:53:33 UTC (rev 52970)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -526,11 +526,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $this->sql_clauses['where']['exclusions'] = preg_replace( '/^\s*AND\s*/', '', $exclusions );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- if (
- ( ! empty( $args['name'] ) ) ||
- ( is_string( $args['name'] ) && 0 !== strlen( $args['name'] ) )
- ) {
- $names = (array) $args['name'];
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $args['name'] = is_string( $args['name'] ) && 0 === strlen( $args['name'] ) ? array() : (array) $args['name'];
+ if ( ! empty( $args['name'] ) ) {
+ $names = $args['name'];
</ins><span class="cx" style="display: block; padding: 0 10px"> foreach ( $names as &$_name ) {
</span><span class="cx" style="display: block; padding: 0 10px"> // `sanitize_term_field()` returns slashed data.
</span><span class="cx" style="display: block; padding: 0 10px"> $_name = stripslashes( sanitize_term_field( 'name', $_name, 0, reset( $taxonomies ), 'db' ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -539,26 +537,18 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $this->sql_clauses['where']['name'] = "t.name IN ('" . implode( "', '", array_map( 'esc_sql', $names ) ) . "')";
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- if (
- ( ! empty( $args['slug'] ) ) ||
- ( is_string( $args['slug'] ) && 0 !== strlen( $args['slug'] ) )
- ) {
- if ( is_array( $args['slug'] ) ) {
- $slug = array_map( 'sanitize_title', $args['slug'] );
- $this->sql_clauses['where']['slug'] = "t.slug IN ('" . implode( "', '", $slug ) . "')";
- } else {
- $slug = sanitize_title( $args['slug'] );
- $this->sql_clauses['where']['slug'] = "t.slug = '$slug'";
- }
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $args['slug'] = is_string( $args['slug'] ) && 0 === strlen( $args['slug'] ) ? array() : array_map( 'sanitize_title', (array) $args['slug'] );
+ if ( ! empty( $args['slug'] ) ) {
+ $slug = implode( "', '", $args['slug'] );
+
+ $this->sql_clauses['where']['slug'] = "t.slug IN ('" . $slug . "')";
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $args['term_taxonomy_id'] = is_string( $args['term_taxonomy_id'] ) && 0 === strlen( $args['term_taxonomy_id'] ) ? array() : array_map( 'intval', (array) $args['term_taxonomy_id'] );
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( ! empty( $args['term_taxonomy_id'] ) ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- if ( is_array( $args['term_taxonomy_id'] ) ) {
- $tt_ids = implode( ',', array_map( 'intval', $args['term_taxonomy_id'] ) );
- $this->sql_clauses['where']['term_taxonomy_id'] = "tt.term_taxonomy_id IN ({$tt_ids})";
- } else {
- $this->sql_clauses['where']['term_taxonomy_id'] = $wpdb->prepare( 'tt.term_taxonomy_id = %d', $args['term_taxonomy_id'] );
- }
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $tt_ids = implode( ',', $args['term_taxonomy_id'] );
+
+ $this->sql_clauses['where']['term_taxonomy_id'] = "tt.term_taxonomy_id IN ({$tt_ids})";
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! empty( $args['name__like'] ) ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -569,13 +559,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $this->sql_clauses['where']['description__like'] = $wpdb->prepare( 'tt.description LIKE %s', '%' . $wpdb->esc_like( $args['description__like'] ) . '%' );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $args['object_ids'] = is_string( $args['object_ids'] ) && 0 === strlen( $args['object_ids'] ) ? array() : array_map( 'intval', (array) $args['object_ids'] );
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( ! empty( $args['object_ids'] ) ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $object_ids = $args['object_ids'];
- if ( ! is_array( $object_ids ) ) {
- $object_ids = array( $object_ids );
- }
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $object_ids = implode( ', ', $args['object_ids'] );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $object_ids = implode( ', ', array_map( 'intval', $object_ids ) );
</del><span class="cx" style="display: block; padding: 0 10px"> $this->sql_clauses['where']['object_ids'] = "tr.object_id IN ($object_ids)";
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -728,7 +715,12 @@
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // $args can be anything. Only use the args defined in defaults to compute the key.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $key = md5( serialize( wp_array_slice_assoc( $args, array_keys( $this->query_var_defaults ) ) ) . serialize( $taxonomies ) . $this->request );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $cache_args = wp_array_slice_assoc( $args, array_keys( $this->query_var_defaults ) );
+ unset( $cache_args['pad_counts'], $cache_args['update_term_meta_cache'] );
+ if ( 'count' !== $_fields && 'all_with_object_id' !== $_fields ) {
+ $cache_args['fields'] = 'all';
+ }
+ $key = md5( serialize( $cache_args ) . serialize( $taxonomies ) . $this->request );
</ins><span class="cx" style="display: block; padding: 0 10px"> $last_changed = wp_cache_get_last_changed( 'terms' );
</span><span class="cx" style="display: block; padding: 0 10px"> $cache_key = "get_terms:$key:$last_changed";
</span><span class="cx" style="display: block; padding: 0 10px"> $cache = wp_cache_get( $cache_key, 'terms' );
</span></span></pre></div>
<a id="trunktestsphpunitteststermgetTermsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/term/getTerms.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/term/getTerms.php 2022-03-21 00:28:55 UTC (rev 52969)
+++ trunk/tests/phpunit/tests/term/getTerms.php 2022-03-21 03:53:33 UTC (rev 52970)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -4,13 +4,40 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @group taxonomy
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> class Tests_Term_getTerms extends WP_UnitTestCase {
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+ protected static $taxonomy = 'wptests_tax_3';
+
</ins><span class="cx" style="display: block; padding: 0 10px"> public function set_up() {
</span><span class="cx" style="display: block; padding: 0 10px"> parent::set_up();
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ register_taxonomy( self::$taxonomy, 'post', array( 'hierarchical' => true ) );
+
</ins><span class="cx" style="display: block; padding: 0 10px"> _clean_term_filters();
</span><span class="cx" style="display: block; padding: 0 10px"> wp_cache_delete( 'last_changed', 'terms' );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ public static function wpSetUpBeforeClass( WP_UnitTest_Factory $factory ) {
+ register_taxonomy( self::$taxonomy, 'page', array( 'hierarchical' => true ) );
+ $term_id1 = $factory->term->create(
+ array(
+ 'name' => 'Foo',
+ 'slug' => 'Foo',
+ 'taxonomy' => self::$taxonomy,
+ )
+ );
+ $term_id2 = $factory->term->create(
+ array(
+ 'name' => 'Bar',
+ 'slug' => 'bar',
+ 'taxonomy' => self::$taxonomy,
+ )
+ );
+ $posts = $factory->post->create_many( 3, array( 'post_type' => 'page' ) );
+ foreach ( $posts as $i => $post ) {
+ wp_set_object_terms( $post, array( $term_id1, $term_id2 ), self::$taxonomy );
+ }
+ }
+
</ins><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * @ticket 37568
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2988,7 +3015,215 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSameSets( array( $term_id ), wp_list_pluck( $found, 'term_id' ) );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
</ins><span class="cx" style="display: block; padding: 0 10px"> /**
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @ticket 55352
+ */
+ public function test_cache_key_generation_cache_domain() {
+ $args_1 = array(
+ 'taxonomy' => self::$taxonomy,
+ 'fields' => 'ids',
+ );
+ $args_2 = array_merge( $args_1, array( 'cache_domain' => microtime() ) );
+ $query1 = get_terms( $args_1 );
+ $num_queries_1 = get_num_queries();
+ $query2 = get_terms( $args_2 );
+ $this->assertNotSame( $num_queries_1, get_num_queries() );
+ $this->assertSameSets( $query1, $query2 );
+ }
+
+ /**
+ * @ticket 55352
+ */
+ public function test_cache_key_generation_all_with_object_id() {
+ $args_1 = array(
+ 'taxonomy' => self::$taxonomy,
+ 'fields' => 'ids',
+ );
+ $args_2 = array_merge( $args_1, array( 'fields' => 'all_with_object_id' ) );
+ $query1 = get_terms( $args_1 );
+ $num_queries_1 = get_num_queries();
+ $query2 = get_terms( $args_2 );
+ $this->assertNotSame( $num_queries_1, get_num_queries() );
+ $this->assertSameSets( $query1, wp_list_pluck( $query2, 'term_id' ) );
+ }
+
+
+ /**
+ * @ticket 55352
+ *
+ * @dataProvider data_same_term_args
+ */
+ public function test_cache_key_generation( $args_1, $args_2 ) {
+ $query1 = get_terms( $args_1 );
+ $num_queries_1 = get_num_queries();
+ $query2 = get_terms( $args_2 );
+ $this->assertSame( $num_queries_1, get_num_queries() );
+ $this->assertSame( count( $query1 ), count( $query2 ) );
+ }
+
+ /**
+ * Data provider.
+ *
+ * @return array
+ */
+ public function data_same_term_args() {
+ return array(
+ 'all fields vs ids' => array(
+ array(
+ 'taxonomy' => self::$taxonomy,
+ 'fields' => 'ids',
+ ),
+ array(
+ 'taxonomy' => self::$taxonomy,
+ 'fields' => 'all',
+ ),
+ ),
+ 'array taxonomy vs string taxonomy' => array(
+ array(
+ 'taxonomy' => self::$taxonomy,
+ 'fields' => 'all',
+ ),
+ array(
+ 'taxonomy' => array( self::$taxonomy ),
+ 'fields' => 'all',
+ ),
+ ),
+ 'slug fields vs names fields' => array(
+ array(
+ 'taxonomy' => self::$taxonomy,
+ 'fields' => 'names',
+ ),
+ array(
+ 'taxonomy' => self::$taxonomy,
+ 'fields' => 'slugs',
+ ),
+ ),
+ 'meta cache off, pad count on vs meta cache on, pad count off' => array(
+ array(
+ 'taxonomy' => self::$taxonomy,
+ 'pad_counts' => true,
+ 'update_term_meta_cache' => false,
+ ),
+ array(
+ 'taxonomy' => self::$taxonomy,
+ 'fields' => 'ids',
+ ),
+ ),
+ 'array slug vs string slug' => array(
+ array(
+ 'taxonomy' => self::$taxonomy,
+ 'fields' => 'all',
+ 'slug' => '',
+ ),
+ array(
+ 'taxonomy' => self::$taxonomy,
+ 'fields' => 'all',
+ 'slug' => array(),
+ ),
+ ),
+ 'array object_ids vs string object_ids' => array(
+ array(
+ 'taxonomy' => self::$taxonomy,
+ 'fields' => 'all',
+ 'object_ids' => '',
+ ),
+ array(
+ 'taxonomy' => self::$taxonomy,
+ 'fields' => 'all',
+ 'object_ids' => array(),
+ ),
+ ),
+ 'array term_taxonomy_id vs string term_taxonomy_id' => array(
+ array(
+ 'taxonomy' => self::$taxonomy,
+ 'fields' => 'ids',
+ 'term_taxonomy_id' => '',
+ ),
+ array(
+ 'taxonomy' => self::$taxonomy,
+ 'fields' => 'all',
+ 'term_taxonomy_id' => array(),
+ ),
+ ),
+ 'array 1 slug vs string slug' => array(
+ array(
+ 'taxonomy' => self::$taxonomy,
+ 'fields' => 'ids',
+ 'slug' => 'bar',
+ ),
+ array(
+ 'taxonomy' => self::$taxonomy,
+ 'fields' => 'all',
+ 'slug' => array( 'bar' ),
+ ),
+ ),
+ 'int object_ids vs array object_ids' => array(
+ array(
+ 'taxonomy' => self::$taxonomy,
+ 'fields' => 'ids',
+ 'object_ids' => 1,
+ ),
+ array(
+ 'taxonomy' => self::$taxonomy,
+ 'fields' => 'all',
+ 'object_ids' => array( 1 ),
+ ),
+ ),
+ 'string object_ids vs array object_ids' => array(
+ array(
+ 'taxonomy' => self::$taxonomy,
+ 'fields' => 'ids',
+ 'object_ids' => '1',
+ ),
+ array(
+ 'taxonomy' => self::$taxonomy,
+ 'fields' => 'all',
+ 'object_ids' => array( 1 ),
+ ),
+ ),
+ 'int term_taxonomy_id vs array term_taxonomy_id and fields different' => array(
+ array(
+ 'taxonomy' => self::$taxonomy,
+ 'fields' => 'ids',
+ 'term_taxonomy_id' => 1,
+ ),
+ array(
+ 'taxonomy' => self::$taxonomy,
+ 'fields' => 'all',
+ 'term_taxonomy_id' => array( 1 ),
+ ),
+ ),
+ 'same arguments in a different order' => array(
+ array(
+ 'fields' => 'ids',
+ 'taxonomy' => self::$taxonomy,
+ 'term_taxonomy_id' => 1,
+ ),
+ array(
+ 'term_taxonomy_id' => 1,
+ 'taxonomy' => self::$taxonomy,
+ 'fields' => 'ids',
+ ),
+ ),
+ 'invalid arguments discarded in cache key' => array(
+ array(
+ 'fields' => 'ids',
+ 'taxonomy' => self::$taxonomy,
+ 'term_taxonomy_id' => 1,
+ 'ticket_number' => '55352',
+ ),
+ array(
+ 'fields' => 'all',
+ 'taxonomy' => self::$taxonomy,
+ 'term_taxonomy_id' => array( 1 ),
+ 'focus' => 'performance',
+ ),
+ ),
+ );
+ }
+
+ /**
</ins><span class="cx" style="display: block; padding: 0 10px"> * @ticket 21760
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_with_multiple_term_slugs_one_equal_to_string_0() {
</span></span></pre>
</div>
</div>
</body>
</html>