On a small client site, I've got 4 simple pages with some imported data ajaxed into a bar on every page of the site. As I do not want to bomb the external site with my scraping every time a page is reloaded, I've set up quite long caching (900s). Every now and then this leads to the page itself will be loading (ajaxing) the wrong page into the site so that the data from one of the pages is shown for all other pages or in some cases only some of them. If I remove caching it seems to work as intended, but that's really not an option.
Have you enabled the "Cache by page" setting on the macro? And do the four pages actually have distinct URLs (in which case that setting should do the trick), or simply different query string parameters?
The ajaxed information is to be found in the left hand menu.
Checking it right now it seems to be working fine, but every now and then it stops working as it should and it's super frustrating as I'm more or less completely sure that this is some sort of bug with Umbraco.
I ended up creating a xml which contained all imported data so that one is more or less only caching one single occurence of this macro, and thus it seems to be working as intended now.
After installing Umbraco 5 for testing, I quite immediately realized that I'm not going to change anytime soon for production purposes, so the need for proper Umbraco 4 support is still very much needed!
Cache-problems 4.7.1.1
On a small client site, I've got 4 simple pages with some imported data ajaxed into a bar on every page of the site. As I do not want to bomb the external site with my scraping every time a page is reloaded, I've set up quite long caching (900s). Every now and then this leads to the page itself will be loading (ajaxing) the wrong page into the site so that the data from one of the pages is shown for all other pages or in some cases only some of them. If I remove caching it seems to work as intended, but that's really not an option.
Anyone know why and how to fix?
Have you enabled the "Cache by page" setting on the macro? And do the four pages actually have distinct URLs (in which case that setting should do the trick), or simply different query string parameters?
The "Cache by page" option is enabled and the four pages have distinct urls.
The page can be found here: http://kajakkpilotene.nikolas.vanetten.no/
The ajaxed information is to be found in the left hand menu.
Checking it right now it seems to be working fine, but every now and then it stops working as it should and it's super frustrating as I'm more or less completely sure that this is some sort of bug with Umbraco.
Anyone? Site should have been released, but this bug is stopping that from happening... I cannot even come up with a work-around. Could this be related to the problem reported here: http://our.umbraco.org/forum/developers/api-questions/8584-Severe-Issue-with-macro-caching-under-heavy-load
If so, should I downgrade to 4.7.1?
Where is 4.7.2?
I ended up creating a xml which contained all imported data so that one is more or less only caching one single occurence of this macro, and thus it seems to be working as intended now.
After installing Umbraco 5 for testing, I quite immediately realized that I'm not going to change anytime soon for production purposes, so the need for proper Umbraco 4 support is still very much needed!
is working on a reply...