I want to convert an existing site to support the selection and association of Cities. Each node can be associated with a City, and the Cities will be selectable as tabs at the top of each page.
Lets say the City Taxonomy is:
- All Cities (mainly used for old content the client doesn't want to convert)
- New York
If a user browses to any City's front page then that will stamp that city in their cookie/user profile, such as:
Then when the user returns to the site front page
site.com/ without a city specified, they'll be redirected to their remembered front page.
Importantly, on top of this, the site is using 1 hour page caching due to relatively low traffic and poor page load speeds, so the redirect will need to run before the cache.
What is there a standard Drupal way to achieve the above, or will it need to be entirely custom in order to run outside any form of caching?
Thanks for any advice!