buda-base / lds-pdi

http://purl.bdrc.io BDRC Linked Data Server
Apache License 2.0
2 stars 0 forks source link

internal cache invalidation mechanism #101

Closed eroux closed 5 years ago

eroux commented 5 years ago

There should be a way to refresh the internal jcs cache for a query, maybe by having a special http header specifying that

MarcAgate commented 5 years ago

In which case this feature would be used (and triggered) ? Assuming the rule that a new or modified query can only be made available through "lds-queries" git repo, we shouldn't need to build such a mechanism (because any push to lds-queries triggers a webhook that updates ldspdi local queries repo and clears the ldspdi queries cache). Furthermore, we can always use "/callbacks/github/lds-queries" to clear the cache.

eroux commented 5 years ago

that's a good idea yes, for queries that will be enough I think... will it also cleat the cache for resources?

MarcAgate commented 5 years ago

Fixed, "/callbacks/github/lds-queries" is now clearing Results cache in addition to clearing query templates cache.

eroux commented 5 years ago

ok, thanks!