Hello, I saw a strange thing.
I use the map by loading KML files.
These files, however, update them often.
If I change the file without changing the name to him the map does not change.
it seems that is held in some old files memory.
For example, if I write "file.kml" I'll call him when I update "file1.kml"
otherwise if the file is physically changed, with different information, the loaded map is that of "file.kml"
Advance that the phoca cache and joomla is disabled.
Is this a bug??
KML-It does't recognize the new file with the same name
-
- Phoca Newbie
- Posts: 3
- Joined: 02 Apr 2016, 18:17
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: KML-It does't recognize the new file with the same name
Hi, no, it seems like this is some google maps api cache There is no cache for the map in Phoca Maps or Joomla!
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 3
- Joined: 02 Apr 2016, 18:17
Re: KML-It does't recognize the new file with the same name
Hello, I don't think it's the google cache.I changed the KML file
but without changing the name. After several hours the map has not changed.
Can you tell me how to fix it ?
but without changing the name. After several hours the map has not changed.
Can you tell me how to fix it ?
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: KML-It does't recognize the new file with the same name
Hi, when I tested the KML feature, I got the same problems, I needed to rename the file for each testing. I don't know how long it takes to cache it, but it cannot be influenced by Phoca or Joomla! or your server.
Your site writes some javascript code which loads the map from Google Maps API, the map is not rendered on your server, the map is rendered in visitor's browser, not on your server, so you cannot influence e.g. cache settings, as the map will be never stored on your server.
Your server writes javscirpt code (with help of Phoca Maps or with help of another tool, it does not matter, the javascript for displaying map is always the same regarding Googla Maps API).
This code is read by visitor's browser and browser then displays the map from Google Maps API so you cannot somehow change it on your server as it does not render on your server but in visitor's browser.
When you write your own javascript code and you will not use some prepared javascript like it is in Phoca Maps or in another component, you get the same outcome.
I will do some more researches if Google Maps API has some instruction how to change the cache, etc, but I think, there is no one as this should be some overload protection feature
Your server --> sends instruction to --> Google Maps API ---> sends the map to visitor's browser (not to your server back).
Jan
Your site writes some javascript code which loads the map from Google Maps API, the map is not rendered on your server, the map is rendered in visitor's browser, not on your server, so you cannot influence e.g. cache settings, as the map will be never stored on your server.
Your server writes javscirpt code (with help of Phoca Maps or with help of another tool, it does not matter, the javascript for displaying map is always the same regarding Googla Maps API).
This code is read by visitor's browser and browser then displays the map from Google Maps API so you cannot somehow change it on your server as it does not render on your server but in visitor's browser.
When you write your own javascript code and you will not use some prepared javascript like it is in Phoca Maps or in another component, you get the same outcome.
I will do some more researches if Google Maps API has some instruction how to change the cache, etc, but I think, there is no one as this should be some overload protection feature
So as written above, it has nothing to do with cache on the server (in Joomla!) as the map is not rendered on the server, it is rendered by visitor's browserAdvance that the phoca cache and joomla is disabled.
Your server --> sends instruction to --> Google Maps API ---> sends the map to visitor's browser (not to your server back).
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 3
- Joined: 02 Apr 2016, 18:17
Re: KML-It does't recognize the new file with the same name
I understood, thanks for your time.
Have a nice day.
Have a nice day.
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: KML-It does't recognize the new file with the same name
Anyway, maybe there exists some solution so if you or anybody will find solution for this problem, will be great, you can inform us in this topic.
Thank you very much, Jan
Thank you very much, Jan
If you find Phoca extensions useful, please support the project
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: KML-It does't recognize the new file with the same name
Hi, try to test it with newest version, I have made some changes regarding loading KML
https://www.phoca.cz/news/890-phoca-maps-3-0-4-released
Not sure if this can somehow influence this problem and if it can solve but try to test.
Thank you, Jan
https://www.phoca.cz/news/890-phoca-maps-3-0-4-released
Not sure if this can somehow influence this problem and if it can solve but try to test.
Thank you, Jan
If you find Phoca extensions useful, please support the project