# How to update InMemoryCache typePolicies

**URL:** <https://community.apollographql.com/t/how-to-update-inmemorycache-typepolicies/225>\
**Category:** Client SDKs\
**Tags:** client, web\
**Created:** [May 27, 2021, 1:35am UTC](https://community.apollographql.com/t/how-to-update-inmemorycache-typepolicies/225 "2021-05-27T01:35:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ray](https://avatars.discourse-cdn.com/v4/letter/r/e9a140/32.png) [@ray](https://community.apollographql.com/u/ray)\
**Post date:** [May 27, 2021, 1:35am UTC](https://community.apollographql.com/t/how-to-update-inmemorycache-typepolicies/225/1 "2021-05-27T01:35:52Z")

</div>

Hi, I’m new to AC3. I’d like to separate AC3 configuration by feature, for example when a page loads then add the AC3 configuration for queries on that page, rather than configuring AC3 for all pages when some may never be loaded.  
I can see 2 solutions.

1. Wrap each feature page in a ApolloProvider with a client for that page
2. update the typePolicies when the page loads

Options 2 seems cleaner, something like

 ![Screen Shot 2021-05-27 at 11.33.07 am](https://us1.discourse-cdn.com/flex019/uploads/apollographql/original/1X/4c4f358d26493dd0c582c9029e1ce3d4559d6522.png)

So my question: is it possible to update typePolicies or should I pursue another option?

---

<div class="post-metadata">

**Author:** ![hwillson](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/hwillson/32/9_2.png) [@hwillson](https://community.apollographql.com/u/hwillson)\
**Post date:** [May 27, 2021, 10:58am UTC](https://community.apollographql.com/t/how-to-update-inmemorycache-typepolicies/225/2 "2021-05-27T10:58:44Z")

</div>

@ray option 2 is almost right - it should be `cache.policies.addTypePolicies()` instead.
