creremyahoo on "[Plugin: WP Fastest Cache] prevent caching a hidden input or an inline javascript code"

ساخت وبلاگ

creremyahoo
Member
Posted 2 days ago #

Hi,
How can i prevent a hidden input witch has the date in unixtimestamp as value(so different on each page reload) to be cached?

I tried to set the value via .ready event in jquery but it is also getting cached.
Thanks

https://wordpress.org/plugins/wp-fastest-cache/

Do you wanna prevent cache for a page which includes a hidden that witch has the date in unixtimestamp?

creremyahoo
Member
Posted 2 days ago #

Hello,
this is the code
<input type="hidden" id="security-login-topbar" name="security-login-topbar" value="<?php echo estate_create_onetime_nonce( 'login_ajax_nonce_topbar' );?>">

it contains a nonce based on unixtimestamp .

How i can avoid caching the value for this input

I have tried setting up the value via inline javascript but it still gets cached.

Thanks

You want to exclude a part of a page?

creremyahoo
Member
Posted 1 minute ago #

That code is composed from a nounce + unixtimestamp and is used in validating a request. I don't want to have it cached since it has a different value every time.
How can i avoid that ?

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 61 تاريخ : دوشنبه 23 فروردين 1395 ساعت: 13:54