<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Infinity Code Forum — Clear cache if map updated]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=1609</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1609&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Clear cache if map updated.]]></description>
		<lastBuildDate>Tue, 22 Sep 2020 07:50:59 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Clear cache if map updated]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6696#p6696</link>
			<description><![CDATA[<p>Thanks, I checked the tiles from the links in the logs and some of them turned out to be really old.</p>]]></description>
			<author><![CDATA[null@example.com (sobkod23)]]></author>
			<pubDate>Tue, 22 Sep 2020 07:50:59 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6696#p6696</guid>
		</item>
		<item>
			<title><![CDATA[Re: Clear cache if map updated]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6690#p6690</link>
			<description><![CDATA[<p>The script is called OnlineMapsLog, but Unity uses a alias &quot;Log&quot; in the Add Component window.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Mon, 21 Sep 2020 18:43:55 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6690#p6690</guid>
		</item>
		<item>
			<title><![CDATA[Re: Clear cache if map updated]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6687#p6687</link>
			<description><![CDATA[<p>I don&#039;t see Online Maps Log component</p>]]></description>
			<author><![CDATA[null@example.com (sobkod23)]]></author>
			<pubDate>Mon, 21 Sep 2020 14:26:34 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6687#p6687</guid>
		</item>
		<item>
			<title><![CDATA[Re: Clear cache if map updated]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6686#p6686</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Mon, 21 Sep 2020 14:25:44 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6686#p6686</guid>
		</item>
		<item>
			<title><![CDATA[Re: Clear cache if map updated]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6685#p6685</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Mon, 21 Sep 2020 14:24:02 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6685#p6685</guid>
		</item>
		<item>
			<title><![CDATA[Re: Clear cache if map updated]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6684#p6684</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (sobkod23)]]></author>
			<pubDate>Mon, 21 Sep 2020 14:15:50 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6684#p6684</guid>
		</item>
		<item>
			<title><![CDATA[Re: Clear cache if map updated]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6683#p6683</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Mon, 21 Sep 2020 13:22:22 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6683#p6683</guid>
		</item>
		<item>
			<title><![CDATA[Re: Clear cache if map updated]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6682#p6682</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (sobkod23)]]></author>
			<pubDate>Mon, 21 Sep 2020 13:13:44 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6682#p6682</guid>
		</item>
		<item>
			<title><![CDATA[Re: Clear cache if map updated]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6680#p6680</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Mon, 21 Sep 2020 13:09:14 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6680#p6680</guid>
		</item>
		<item>
			<title><![CDATA[Re: Clear cache if map updated]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6679#p6679</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (sobkod23)]]></author>
			<pubDate>Mon, 21 Sep 2020 13:06:30 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6679#p6679</guid>
		</item>
		<item>
			<title><![CDATA[Re: Clear cache if map updated]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6677#p6677</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Mon, 21 Sep 2020 09:23:24 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6677#p6677</guid>
		</item>
		<item>
			<title><![CDATA[Clear cache if map updated]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6675#p6675</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (sobkod23)]]></author>
			<pubDate>Mon, 21 Sep 2020 08:36:49 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6675#p6675</guid>
		</item>
	</channel>
</rss>
