Welcome to OptiCache PRO! ⚡ The ultimate intelligent memory manager for your Bubble app.
Why spend expensive Workload Units (WUs) fetching the exact same data from your database on every single page load? OptiCache transforms the user's browser into a lightning-fast, zero-latency database using localStorage and sessionStorage.
While the Free version gives you basic storage, OptiCache PRO introduces "Smart Caching"—allowing your data to manage its own lifecycle securely.
💎 Features:
⏱️ Smart TTL (Time-To-Live): Set an expiration time (e.g., 60 minutes). The plugin will automatically destroy the cached data when the time is up, forcing a fresh database read. No more "zombie data"!
🔒 User ID Isolation: Prevent cross-contamination! Automatically scope cached keys to the specific logged-in user. If User A and User B share the same PC, their cached data will never mix.
🗂️ Session vs. Local Storage: Choose between Local (data survives browser restarts) and Session (data is automatically wiped the moment the user closes the tab—perfect for sensitive temporary data or tokens).
🧠 Set Server Cache: Save any text or complex JSON to your Upstash Redis database with an optional Time-to-Live (TTL).
⚡ Get Server Cache: Retrieve data globally across any user session in milliseconds.
🗑️ Invalidate Server Cache: Instantly delete specific keys from the server when your core Bubble data changes, forcing a fresh update.
💰 Massive WU Savings: Bypass Bubble's database entirely for frequently accessed public data. Provide an Enterprise-grade, blazing-fast experience at a fraction of the cost!
✨ Key Features in V3:
🌍 Multi-Layer Hybrid Cache (L1 ➔ L2 ➔ L3): Stop guessing where to store data. The new Hybrid Engine checks ultra-fast RAM (Session), falls back to Disk (Local), and if completely missing, securely delegates to your Server (Upstash Redis). Once retrieved, it automatically promotes the data back up the chain for 1ms subsequent loads.
🔄 Stale-While-Revalidate (SWR): The holy grail of web performance. If a cache expires, Opticache will instantly render the stale data (zero blank screens or loaders) while silently triggering a background refresh event to fetch fresh data from your API.
🔑 Invalidation Trees & Versioning: True cache governance. Keys are now structured as [namespace]:[version]:[user_id]:[key]. Instantly wipe entire branches of data (e.g., all "dashboard" data) without touching user "settings", or simply bump the version number to deprecate old cache seamlessly.
📊 WU Savings Analytics: Prove your ROI. Opticache now tracks every single Cache Hit and Miss locally, calculating your Hit Rate % and multiplying it by your custom WU cost per API call to show you exactly how many Workload Units the plugin is saving you in real-time.
Demo Page:
https://demo-app-56978.bubbleapps.io/version-test/opticache_pro/1777377651728x447382367620682300Editor Page:
https://bubble.io/page?id=demo-app-56978&test_plugin=1777372940552x924836201410854900_current&tab=Design&name=opticache_pro