Skip to content

Commit a96d694

Browse files
author
Miika Arponen
committed
Prevent caching of partials as well when the Debugger is on
1 parent fa15296 commit a96d694

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

plugin.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@
33
* Plugin Name: DustPress Debugger
44
* Plugin URI: https://github.com/devgeniem/dustpress-debugger
55
* Description: Provides handy ajaxified debugger tool for DustPress based themes.
6-
* Version: 1.2.3
6+
* Version: 1.2.4
77
* Author: Geniem Oy / Miika Arponen & Ville Siltala
88
* Author URI: http://www.geniem.com
99
*/
1010

1111
namespace DustPress;
1212

1313
use add_action;
14+
use add_filter;
1415
use admin_url;
1516
use current_user_can;
1617
use is_user_logged_in;
@@ -60,7 +61,8 @@ public static function init() {
6061
add_filter( 'dustpress/menu/data', array( __CLASS__, "gather_menu_helper_data") );
6162

6263
// Prevent DustPress for caching the rendered output so that this plugin works
63-
add_filter( "dustpress/cache/rendered", "__return_false", PHP_INT_MAX );
64+
add_filter( "dustpress/cache/rendered", "__return_false", ( PHP_INT_MAX - 1000 ) );
65+
add_filter( "dustpress/cache/partials", "__return_false", ( PHP_INT_MAX - 1000 ) );
6466
}
6567
}
6668
}

0 commit comments

Comments
 (0)