We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04c4535 commit 6fc4eb1Copy full SHA for 6fc4eb1
post-content-to-markdown.php
@@ -25,6 +25,16 @@
25
}
26
27
28
+/**
29
+ * Tell caching plugins (WP Super Cache, etc.) to skip caching for markdown requests.
30
+ * This runs early to ensure the constant is set before caching plugins check it.
31
+ */
32
+add_action('plugins_loaded', function () {
33
+ if (isMarkdownRequested() && !defined('DONOTCACHEPAGE')) {
34
+ define('DONOTCACHEPAGE', true);
35
+ }
36
+});
37
+
38
/**
39
* Check if Markdown format is requested via Accept header or query parameter
40
*/
0 commit comments