<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Clear cache if map updated]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1609&amp;type=atom" />
	<updated>2020-09-22T07:50:59Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=1609</id>
		<entry>
			<title type="html"><![CDATA[Re: Clear cache if map updated]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6696#p6696" />
			<content type="html"><![CDATA[<p>Thanks, I checked the tiles from the links in the logs and some of them turned out to be really old.</p>]]></content>
			<author>
				<name><![CDATA[sobkod23]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1388</uri>
			</author>
			<updated>2020-09-22T07:50:59Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6696#p6696</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Clear cache if map updated]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6690#p6690" />
			<content type="html"><![CDATA[<p>The script is called OnlineMapsLog, but Unity uses a alias &quot;Log&quot; in the Add Component window.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2020-09-21T18:43:55Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6690#p6690</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Clear cache if map updated]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6687#p6687" />
			<content type="html"><![CDATA[<p>I don&#039;t see Online Maps Log component</p>]]></content>
			<author>
				<name><![CDATA[sobkod23]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1388</uri>
			</author>
			<updated>2020-09-21T14:26:34Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6687#p6687</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Clear cache if map updated]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6686#p6686" />
			<content type="html"><![CDATA[<p>If the browser displays an old image, then unfortunately I don&#039;t know a way to reset the Mapbox cache.<br />Here you need to wait until the cache is reset on the Mapbox side.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2020-09-21T14:25:44Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6686#p6686</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Clear cache if map updated]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6685#p6685" />
			<content type="html"><![CDATA[<p>Perhaps Mapbox has cached these tiles and is returning old images.<br />To verify this, add the Online Maps Log component, and enable Show Request.<br />This will show all requests in the console.<br />Open the tile that has a problem in the browser to check if old or new image is displayed.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2020-09-21T14:24:02Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6685#p6685</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Clear cache if map updated]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6684#p6684" />
			<content type="html"><![CDATA[<p>I don&#039;t know why, but it still doesn&#039;t work. Have you seen the image I attached above?</p><p>Although I cleared the cache, I still have old and new tiles loaded together, maybe something is wrong with getting data from the Mapbox?</p>]]></content>
			<author>
				<name><![CDATA[sobkod23]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1388</uri>
			</author>
			<updated>2020-09-21T14:15:50Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6684#p6684</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Clear cache if map updated]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6683#p6683" />
			<content type="html"><![CDATA[<p>You mean that the map does not clear tiles that are already loaded in the current session, right?!<br />Reset the tile manager state:<br /></p><div class="codebox"><pre><code>map.tileManager.Reset();</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2020-09-21T13:22:22Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6683#p6683</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Clear cache if map updated]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6682#p6682" />
			<content type="html"><![CDATA[<p>Hmm, I did it, but I see not only new tiles, but also old ones - some tiles are new, others are old</p>]]></content>
			<author>
				<name><![CDATA[sobkod23]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1388</uri>
			</author>
			<updated>2020-09-21T13:13:44Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6682#p6682</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Clear cache if map updated]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6680#p6680" />
			<content type="html"><![CDATA[<p>OnlineMapsCache.ClearFileCache<br /><a href="https://infinity-code.com/doxygen/online-maps/classOnlineMapsCache.html#a204c2fc25ec04443df6176a11290cba2">https://infinity-code.com/doxygen/onlin … a11290cba2</a></p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2020-09-21T13:09:14Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6680#p6680</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Clear cache if map updated]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6679#p6679" />
			<content type="html"><![CDATA[<p>Ok, thanks!</p><p>And how I can clear the cache properly via the code after checking so there no old tiles left?</p>]]></content>
			<author>
				<name><![CDATA[sobkod23]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1388</uri>
			</author>
			<updated>2020-09-21T13:06:30Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6679#p6679</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Clear cache if map updated]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6677#p6677" />
			<content type="html"><![CDATA[<p>Hello.</p><p>You have several ways:<br />1. To check that the style has changed, download one tile (it is desirable that it contains the maximum amount of information that can be changed) and check the checksum. If the checksum has been changed, clear the file cache.</p><p>2. Make a request:<br /></p><div class="codebox"><pre><code>https://api.mapbox.com/styles/v1/{USER_ID}/{STYLE_ID}/?fresh=true&amp;access_token={ACCESS_TOKEN}</code></pre></div><p>You will receive JSON in response. Check &quot;modified&quot; field, and if this has changed, clear the file cache.</p><p>3. Use your own website or dropbox to keep a timestamp of when the style was last updated.<br />It can be a simple text file that contains the date and time. The main thing here is to remember to change the file when you changed the style.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2020-09-21T09:23:24Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6677#p6677</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Clear cache if map updated]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6675#p6675" />
			<content type="html"><![CDATA[<p>Hey guys!</p><p>Thank you for your work on this plugin!</p><p>I have a question - is it possible to somehow check that the map style has been updated and when the app starts, clear the cache so that a new map is loaded. We use the Mapbox map and when the style is updated, we still see some part (cached part) of the map with the old style. So we have to clear the cache manually to fix this issue. </p><p>Thank you in advance!</p>]]></content>
			<author>
				<name><![CDATA[sobkod23]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1388</uri>
			</author>
			<updated>2020-09-21T08:36:49Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6675#p6675</id>
		</entry>
</feed>
