Hi,

I've been struggling with Taxonomy_xml's 'caching' feature. When importing taxonomy from a URL, it never takes into account that the remote file may have changed. It always retrieves the cached version based on the filename.

In function taxonomy_xml_cached_get_contents($url, $flush = FALSE), the '$flush' tag isn't implemented. For URLs there should either be a button in the import form to override the cached version, or it should always update the cache when retreiving a URL.

Thanks

Comments

dman’s picture

True.
I haven't met a repository that changed its RDF between hits, so the cache it totally static.
I hit that myself recently (trying to test changes made to freebase), so I'm going to add a button for this.
Or you could have a go!

Shorin’s picture

I made caching ineffectual for my own purposes. I didn't have permissions on the server to delete the cache files so i had to do that. See http://drupal.org/node/319513#comment-2385086 for a patch that includes that fix, if you want it.

dman’s picture

Status: Active » Fixed

Delete Button does now exist in the dev version (has for a few months, but I didn't follow up here)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.