وردپرس

Quick question


Replies: 0

Hi there Jose,

First of all thanks for making such a great plugin. This looks like exactly what I need.

So, I am using “Announcer” plugin to show notifications to logged in users. I am also using “WP-Optimize” plugin for caching pages. “Announcer” plugin allows me to show dynamic content (current user role) to logged in users based on WooCommerce purchase. However, when the page gets cached, notification bar gets cached as well at the same time so the user role in the notification bar remains unchanged, regardless of WooCommerce purchase.

As far as I understand, “Content No Cache” plugin excludes specific elements from the cache by wrapping dynamic content into CNC shortcode. After pasting my shortcode for dynamic content [xyz-ips snippet=”User-Role”] to CNC shortcode, dynamic content wasn’t recognized in the notification bar and there is an infinite spinning wheel in the notification bar instead of user role.

Here is the screenshot of “Announcer” without “Content No Cache plugin” to get better idea what I am talking about: https://snipboard.io/tSQsmw.jpg

Here is also the screenshot of “Announcer” plugin with “Content No Cache plugin”: https://snipboard.io/nPCBSJ.jpg

Do you have any idea what could be wrong here? Thanks a bunch for your help!

این خبر را در ایران وب سازان مرجع وب و فناوری دنبال کنید

مشاهده پاسخ های این مطلب
———————————————
این مطلب از سایت انجمن وردپرس گردآوری شده است و کلیه حقوق مطلق به انجمن وردپرس می باشد در صورت مغایرت و یا بروز مشکل اطلاع دهید تا حذف گردد

منبع: انجمن وردپرس

دکمه بازگشت به بالا