ibro87
Forum Replies Created
-
Hey Daniyal Raza,
Sorry, I have taken so long to reply. This code actually does exactly what I need. Thank you so much for this, this is very helpful! ??Forum: Plugins
In reply to: [If-So Dynamic Content Personalization] Cache compatibilityI did. That didn’t work because excluding OptinSpin cookies in WP-Optimize also prevents pages from being cached at the same time which is not what I want. I want all pages to be cached but I’d like to exclude OptinSpin wheel from caching so users can spin the wheel only once per day which is how plugin works without caching. Hope that makes sense.
Hi Daniyal Raza,
I totally get that this is not directly related to your plugin and I really appreciate your willingness to help.
Unfortunately, WP-Optimize support is terrible and they are very difficult to communicate with. They asked me to exclude specific pages from caching which obviously is not an option for me because spinning wheel is used on every page. They also shared some example codes in this thread which I did not find useful at all but you can also check if you want.
To be totally honest, I do not think they are capable of providing any better support than they have already provided. Thanks again for your willingness to help!Forum: Plugins
In reply to: [If-So Dynamic Content Personalization] Cache compatibilityHi,
Unfortunately, loading the trigger with Ajax on relevant page did not work. The page remained fully cached which affects OptinSpin wheel as well. Interestingly, OptinSpin official website also use cache but you can spin the wheel only once there which is expected behaviour. I wonder how they managed to achieve this?
Anyway, it seems like If-So can’t do what I need. Thanks for your time though.Well, nothing should be purged automatically unless “purge” button is clicked. Is it possible to disable automatic purging with this plugin or not?
I’m sorry but I did not find this answer helpful at all. Since MyCred plugin is running on every page, excluding pages from caching definitely isn’t an option. This thread can be closed now.
Hi,
I already did but they are not even familiar with MyCred plugin and they could not help. I find this thread unhelpful so I’m going to close it now.Hi Daniyal Raza,
Unfortunately, this code does not work for WP-Optimize plugin. As I previously mentioned, I am not WP developer and I am not able to write custom codes. Are you able to provide me with working code specifically made for WP-Optimize plugin?Yes, I want to clear site wide cache when user gain or lose MyCred points. Let me know if I can be of any further assistance. Thank you!
Hi Daniyal,
Thank you so much for providing me this snippet code. Unfortunately, this did not work but I feel like we’re very close to achieve what I need.
Perhaps this helps?
https://getwpo.com/faqs/when-does-wpo-clear-the-cache/Sorry, I’m not a WordPress developer and do not understand what you’re saying.
Could you please provide an example code or detailed MyCred documentation that I could share with WP-Optimize support? if so, they might be able to better assist. Thank you.
Hi Daniyal Raza,
The function below clears the cache in the caching plugin when a post is updated.
public function purge_post_on_update($post_id) {$post_type = get_post_type($post_id);
$post_type_object = get_post_type_object($post_type);
if ((defined(‘DOING_AUTOSAVE’) && DOING_AUTOSAVE) || ‘revision’ === $post_type || null === $post_type_object || !$post_type_object->public) {
return;
}
Could you now please tell where to add MyCred filter in order to clear the cache when user gain or lose points? Thanks for your help!We already tried this filter in previous post. This did not work. Are you guys able to provide working filter instead of guessing what may work for your plugin?
Ok. So where should I add MyCred filter (mycred_add_finished) in this function in order to clear the cache when user gain or lose MyCred points?
Hi vupdraft,
I was told this can be easily achieved with the filter provided. We just need to figure out the function that will clear the cache in the caching plugin. So, I was wondering where can I find this function in your documentation?