URL generated with add_rewrite_rule not being cached
-
Hi
By necessity I need some url that I am generating with my plugin with the add_rewrite_rule function.
Regular WordPress pages are being cached as HTML by the plugin but none of this custom URL are.
This is how I load the PHP+HTML code to be shown to the user. Maybe I am doing something wrong and that’s preventing Total Cache to generate the HTML copy?
if (array_key_exists( 'customURL', $wp->query_vars )){ $this->initCategory($wp); load_template( $this->plugin_path . 'templates/' . $this->brand . '/category.php' ); exit(); }
- The topic ‘URL generated with add_rewrite_rule not being cached’ is closed to new replies.