Hi,
(Still thinking about your other localisation issue…)
Can you give me a bit more information? I can’t see your site at the moment (firewall issues).
How many channels have you got defined?
What shortcode are you using?
Does the problem happen in all locales?
Cheers,
Paul
I tried to recreate your fault (as I understand it), and did so briefly… However when I changed my channel data it started working again. So one thing to try is to go the affiliate ID’s page and hit the ‘Update’ button on one of the channels.
—
There is another bug (sort of caching related) which probably not the one you are seeing that if you have two links in the same post to the same product (different shortcodes), then they will both use the same channel.
Hope that helps,
Paul
There is another bug (sort of caching related) which probably not the one you are seeing that if you have two links in the same post to the same product (different shortcodes), then they will both use the same channel.
Yes this is the Issue. I am facing exactly this issue. Tried few more experiments that confirms this.
All amazon link caching is disabled in my site and I don’t use AWS related features.
———-
You cannot see my website π Is this something on your side ? Just worried if its some issue that I need to take care in my website.
Other localisation issue take your time. That was just more of a thought. I am not blocked by that.
———
How many channels have you got defined?
– I have 6 channels. Only for US I am chaning the tag. For other countries its always from Default.
What shortcode are you using?
– [amazon chan=bpmi&asin[us]=def&search_link=1&search_text_s=%TEXT1%S#&text1=Search Text&image=http://abc.com/image.jpg&text2=Search Text&template=specimg&text=Prices and Specifications]
– [amazon chan=bpmc&asin[us]=def&search_link=1&search_text_s=%TEXT1%S#&text1=Search Text&text=anchor text]
– [amazon chan=bpmb&asin[us]=def&search_link=1&search_text_s=%TEXT1%S#&text1=Search Text&template=buynow]
Was expecting 3 different tags for US but it shows only 1 different tag.
With this I can see the problem. Just for Info though, In reality I have created few more shortcodes on top of Amazon Link that can help me write and remember.
Does the problem happen in all locales?
– I have seen it in US.
———
Updating the associate ID’s did not help.
Hi,
Okay, bit more on that fault:
In the plugin (if you lots of channels and channel filters and user channels, etc.) it took a lot of effort to calculate which tag to use. So to help speed up the process the plugin saves the channel used in a lookup cache based on a combination of Post ID & ASIN.
If it needs to work out the tag again within the same post for the same product (ASIN) then it will use the stored one.
If you can change the ASIN between shortcodes it will work as you want. If that is not an option then I can add a fix to also include the ‘chan’ argument in the ‘cache’ lookup.
Paul
If you can change the ASIN between shortcodes it will work as you want. If that is not an option then I can add a fix to also include the ‘chan’ argument in the ‘cache’ lookup.
Not an option for me.
Its the same product. Different channel is to know which section of the page user is clicking more.
chan argument in the ‘cache’ lookup will be helpful.
BTW, the issue is not only with Asin. In some pages I don’t have any asin. Even with the same search text this issue is there.
Small Doubt, I have shortcode Cache Disabled in setting. Is this some other cache. If so what is the “Shortcode Cache” setting for ? (I plan to enable it)
Hi,
I’ll put a fix in the next version of the plugin so that it checks the ‘chan’ argument as well.
The ‘channel_cache’ is purely in the internals of the plugin it is not something you can disable unfortunately.
The “Shortcode Cache” is my attempt at trying to cache as much as possible whilst still keeping it ‘dynamic’.
Basically for each shortcode, in a particular post, when viewed from a certain locale is stored in the database after the template has been fully populated with data. Once it is cached then the shortcode does not need to be parsed again, it is just retrieved from the database and inserts it in the post.
The cache trades ‘PHP’ intensive generation of the shortcodes for ‘database’ intensive operations – so depending on your server may improve performance or not!
It is still a work in progress, so there are currently no hooks to automatically clear entries (so keep the age low). If you do a lot of editing to your posts or shortcodes it would probably be best to ‘flush’ the cache.
Cheers,
Paul
Hi,
I’ve uploaded a new version (still pre-release) so you have to download and install manually:
https://downloads.wp.xz.cn/plugin/amazon-link.3.2.5-rc2.zip
There are some other changes unrelated to your issues so proceed with caution!
See also: https://ww.wp.xz.cn/support/topic/how-to-override-country-to-tld-mapping?replies=4#post-6213747
Paul
Thanks,
Works Great. Really appreciate you looking into this and such a quick turnaround.
Will test the other stuff as well and update that thread.