This project is read-only.


Cache View Version


Your project seems pretty interesting however it needs additional setup of deleting the cache when we change the model.

I suggest following algorithm,

We keep a version tag with GUID in text template as follow,
    internal static class VersionGuid{
        internal const string Version = "<#= Guid.NewGuid().ToString() #>";
This eventually changes when model is changed and when we regenerate the model from our source database.

If you provide facility to pad this version string, that should resolve issue of deleting cache. If version does not match, then stale cache can be deleted and you can regenerate the view.
Closed Sep 7, 2014 at 6:25 AM by moozzyk
No further details given. Closing as no repro.


moozzyk wrote Aug 27, 2014 at 5:35 AM

I am not sure if I understand what you are asking. If the model hash changes the views for old model are automatically replaced with views for the new model so they should be always up-to-date. If you don't see this happening please provide a minimal but complete repro so that I could investigate.