You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -616,6 +618,9 @@ Please review the [official @forge/kvs quotas and limits](https://developer.atla
616
618
- Monitor cache usage to stay within quotas
617
619
- Use appropriate TTL values
618
620
621
+
**⚠️ Important Cache Limitations:**
622
+
-**Table names starting with `a_`**: Tables whose names start with `a_` (case-insensitive) are automatically ignored in cache operations. KVS Cache will not work with such tables, and they will be excluded from cache invalidation and cache key generation.
623
+
619
624
### Step 1: Install Dependencies
620
625
621
626
```bash
@@ -1135,8 +1140,10 @@ const user = await forgeSQL
1135
1140
.execute("SELECT * FROM users WHERE id = ?", [1]);
1136
1141
1137
1142
// Using forgeSQL.executeCacheable() - Execute raw SQL with local and global caching
1143
+
// ⚠️ IMPORTANT: When using executeCacheable(), all table names in SQL queries must be wrapped with backticks (`)
1144
+
// Example: SELECT * FROM `users` WHERE id = ? (NOT: SELECT * FROM users WHERE id = ?)
1138
1145
constuser=await forgeSQL
1139
-
.executeCacheable("SELECT * FROM users WHERE id = ?", [1], 300);
1146
+
.executeCacheable("SELECT * FROM `users` WHERE id = ?", [1], 300);
0 commit comments