[no merge] proposal to not cache tiles using non cartodbfied tables #297
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I was playing with FDW and I realized that we don't have a way to tell maps api to not cache tiles for some map. In a local table we can always attach a trigger so we update cdb_tablemedata but with a FDW is not possible.
The right way would be:
anyways, I though wrapping the query in a function would work so I could use select * fn_that_query_my_fdw() but when I use that cache headers are set (and a wrong x-cache-channel)
This PR is a proposal to fix that. I think it's not right since a
select 'POINT(1 1)'::geometry as the_geom_webmercator
would not be cached (and it definitely can be) but it's better than caching something you don't know if cacheablecc @rochoa