Skip to content

Conversation

@navidshad
Copy link
Collaborator

@navidshad navidshad commented Dec 18, 2025

🏷️ PR Title:
Enhance useDataCache composable and Modular REST Client with caching and expiration handling

📋 Summary

This PR improves the useDataCache composable by adding expiration handling and optimizing its data structure. Additionally, the Modular REST Client has been enhanced to support caching mechanisms, boosting efficiency and reducing redundant network requests.

🔗 Related Tasks

#86evxd43z - Enhance useDataCache composable with expiration handling and improved data structure
#86evxd43z - Enhance Modular REST Client with caching support

📝 Additional Details

  • The caching support in the REST client is designed to seamlessly integrate with existing request flows.
  • Expiration handling in useDataCache ensures stale data is invalidated automatically.
  • This work lays the foundation for more advanced caching strategies in upcoming features.

📜 Commit List

08239c9 feat: #86evxd43z Enhance useDataCache composable with expiration handling and improved data structure
8003ac0 feat: #86evxd43z Enhance Modular REST Client with caching support
dd81323 Merge branch 'CU-86evxd43z_Add-catch-mechanism-for-backward-visited-pages_Navid-Shad' into dev

- Introduced session-based caching for dataProvider methods to improve performance and reduce network requests.
- Updated the plugin to sync SSR cache to sessionStorage on client mount.
- Refactored client-side checks to use import.meta.client for better compatibility.
…ling and improved data structure

- Introduced cache expiration logic to ensure stale data is removed after 30 minutes.
- Updated cache entry format to include timestamps for better validity checks.
- Refactored data retrieval methods to prioritize sessionStorage and handle legacy formats.
- Added cleanup functionality to remove expired entries from sessionStorage.
- Improved synchronization of valid SSR bridge data to sessionStorage for enhanced performance.
@navidshad
Copy link
Collaborator Author

@navidshad navidshad merged commit 56b6146 into main Dec 18, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants