Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
litespeed_wiki:cache:lscwp:esi_nonce [2017/09/24 15:36] Hai Zheng |
litespeed_wiki:cache:lscwp:esi_nonce [2017/09/24 16:29] Hai Zheng |
||
---|---|---|---|
Line 15: | Line 15: | ||
<syntaxhighlight lang='php'> | <syntaxhighlight lang='php'> | ||
function vc_generate_nonce( $data, $from_esi = false ) { | function vc_generate_nonce( $data, $from_esi = false ) { | ||
- | if ( ! $from_esi ) { | + | if ( ! $from_esi && ! vc_is_frontend_editor() ) { |
if ( method_exists( 'LiteSpeed_Cache_API', 'esi_enabled' ) && LiteSpeed_Cache_API::esi_enabled() ) { | if ( method_exists( 'LiteSpeed_Cache_API', 'esi_enabled' ) && LiteSpeed_Cache_API::esi_enabled() ) { | ||
if ( method_exists( 'LiteSpeed_Cache_API', 'v' ) && LiteSpeed_Cache_API::v( '1.2.4' ) ) { | if ( method_exists( 'LiteSpeed_Cache_API', 'v' ) && LiteSpeed_Cache_API::v( '1.2.4' ) ) { |