title: Best practices for caching front page queries for Google App Engine (GAE)
body: <p>Wanted to ask what is the best practices for caching front pages queries for google app engine whose datastore provide only eventual consistency (unless ancestor queries are used)</p>
  
  <p>The issue I'm running into is if I put an item into the datastore, I can't immediately run a query to get the correct and most up-to-date results and based on the docs I'm reading, there's no way for me to know when all the index values (or just the relevant ones) have been updated to produce the updated query</p>
  
  <p>I've set up a manual add into the cache in parallel but then I would never really have a point of entry to make sure the cache is in sync with the datastore, unless I set an arbitrary time for cache expiry... </p>
  
  <p>Is there a way to get around this?</p>
  
  <p>Thanks!</p>