Deprecated: wpseo_twitter is deprecated since version 14.0! Use wpseo_frontend_presenters instead. in /home/wpsoul34/public_html/wp-includes/functions.php on line 5089

Favorites posts on cached pages


Hi, I created page for list of user favorites posts with shortcode [rh_get_user_favorites]

I excluded this page from cache. When I click on “getHotThumb” button in the post, this post is displayed in list of user favorited posts – so it works well.

Problem is on pages and posts with “getHotThumb” button. When I click on it, it display correct state of this button like “added to wishlist”. But after I refresh page, this button display previous state “add to wishlist”. It looks like I never clicked on this button. And for website user this is very confusing.

Such favorited post is displayed on page with list of user favorited posts, but in this post it’s “getHotThumb” button says that this post is not favorited yet.

But I can not exclude all pages from cache on which is displayed “getHotThumb” button, because in this case using of caching plugin does not make any sense.

Please, can you add function which update “getHotThumb” button state via an AJAX call after page load in order to accommodate cached pages.

Such function is already used in favorites plugin and it works. But problem here is that layout of list of user favorites posts doesn’t contain buttons for posts (including button for displaying coupon). And such button are not presented even in template “Favorites list”, which you created for your theme.

  • You must to post comments

ok. i will think

  • You must to post comments
Showing 1 result
Your Answer
Warning: fopen(/home/wpsoul34/public_html/wp-content/sabai/really-simple-captcha/.htaccess): failed to open stream: Permission denied in /home/wpsoul34/public_html/wp-content/plugins/really-simple-captcha/really-simple-captcha.php on line 309

Warning: imagepng(/home/wpsoul34/public_html/wp-content/sabai/really-simple-captcha/004a7f42612efc3d842de335724dcdd3.png): failed to open stream: Permission denied in /home/wpsoul34/public_html/wp-content/plugins/really-simple-captcha/really-simple-captcha.php on line 147

Warning: fopen(/home/wpsoul34/public_html/wp-content/sabai/really-simple-captcha/004a7f42612efc3d842de335724dcdd3.txt): failed to open stream: Permission denied in /home/wpsoul34/public_html/wp-content/plugins/really-simple-captcha/really-simple-captcha.php on line 170
Post as a guest by filling out the fields below or if you already have an account.
Fill the captcha*