mirror of
https://github.com/chenyme/grok2api.git
synced 2026-12-06 08:02:14 +00:00
feat: Implement local and asset view caching with invalidation logic to optimize rendering
This commit is contained in:
1 parent
5af6bd3ca3
commit
9fe91d14cc
1 file changed
+1
@@ -468,6 +468,7 @@ function invalidateLocalView() {
|
||||
|
||||
function invalidateAssetView() {
|
||||
_assetViewVersion += 1;
|
||||
}
|
||||
|
||||
function getLocalView() {
|
||||
if (_localViewCache && _localViewCacheVersion === _localViewVersion) return _localViewCache;
|
||||
|
||||
Reference in new issue
Block a user