Caching

A lot of functions in SeoTools that retrieves information from a webpage (or other source from the internet) as marked as cached. This mean that, during a session, SeoTools will only try to fetch a page once and that all functions that are cached can reuse the fetched page.

For example lets say you want to get both H1 and H2 from a page. You use =HtmlH1("http://mypage.se") and then =HtmlH2("http://mypage.se"). When SeoTools fetches the page to get the H1 the cache is empty so http://mypage.se is fetched. But when we get the H2 we have http://mypage.se in cache and SeoTools uses what stored in memory instead.

Clear cache

You can empty the cache by selecting About in the SeoTools tab and click on Clear Cache.

You can also use the function =SeoToolsClearCache() to quickly clear the cache.

Clear all pages from http://nielsbosma.se (use '*' as wildcard):

=SeoToolsClearCache("http://nielsbosma.se*")

From VBA:

Application.Run("SeoToolsClearCache","http://nielsbosma.se*") 

Disable in SeoTools.config.xml

Caching can also be disabled for all functions by modifying SeoTools.config.xml:

<HttpDownloader>  
 <GlobalSettings>
      <Cache>false</Cache>
      ...
</HttpDownloader>  

Read more about this in HttpSettings.


Comments

comments powered by Disqus