Description Usage Arguments Details
Updating the salts of an existing cached function can be tricky. This utility handles that by copying over the cached data into new shards, add indexes, and add new entires into the table_shard_map.
1 | update_cache_salt(dbconn, prefix, old_salt, new_salt)
|
dbconn |
SQLConnection. A database connection. |
prefix |
character. The prefix for the cached_fcn |
old_salt |
list. The old salt object. |
new_salt |
list. A new salt object. |
Note: The old shards aren't removed from the database but they can be safely removed once cached functions using the old salts are fully depricated.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.