Skip to content
On this page

Cache Key and Tag

  • The following list shows the cache key name rules and tags; a cache key may have multiple tags.
  • Cache tags are not supported when using the file, dynamodb, or database cache drivers.
php
use App\Helpers\CacheHelper;

CacheHelper::isSupportTags();
// false or true

No Tag

php
fresns_cache_is_support_tags
fresns_cache_tags
install_{$step}
autoUpgradeStep
autoUpgradeTip
physicalUpgradeStep
physicalUpgradeTip

fresnsSystems

  • tag: fresnsSystems
php
fresns_current_version
fresns_new_version
fresns_news
fresns_database_timezone
fresns_database_datetime
fresns_panel_login_path
fresns_panel_translation_{$locale}
fresns_model_key_{$appId}
fresns_crontab_items

fresnsConfigs

  • tag: fresnsConfigs
php
fresns_default_langTag
fresns_default_timezone
fresns_lang_tags
fresns_config_{$itemKey}_{$langTag}
fresns_config_keys_{$key}_{$langTag}
fresns_config_tag_{$itemTag}_{$langTag}
fresns_config_file_accept
fresns_config_file_url_expire
fresns_content_block_words          // fresns_{$type}_block_words
fresns_user_block_words             // fresns_{$type}_block_words
fresns_conversation_block_words     // fresns_{$type}_block_words
fresns_content_ban_words
fresns_content_review_words
fresns_user_ban_words
fresns_conversation_ban_words

fresnsLanguages

  • tag: fresnsLanguages
  • tag: fresnsUnknownLanguages
  • tag: fresnsConfigLanguages
  • tag: fresnsPluginUsageLanguages
  • tag: fresnsRoleLanguages
  • tag: fresnsStickerLanguages
  • tag: fresnsNotificationLanguages
php
fresns_{$tableName}_{$tableColumn}_{$tableId}_{$langTag}

fresnsCodeMessages

  • tag: fresnsCodeMessages
php
fresns_code_messages_{$unikey}_{$langTag}

fresnsRoles

  • tag: fresnsRoles
php
fresns_role_{$id}_{$langTag}

fresnsAccounts

  • tag: fresnsAccounts
php
fresns_token_account_{$accountId}_{$token}   // +tag: fresnsAccountTokens
fresns_model_account_{$aid}                  // +tag: fresnsAccountModels
fresns_api_account_{$aid}_{$langTag}         // +tag: fresnsAccountData

fresnsUsers

  • tag: fresnsUsers
php
fresns_token_user_{$userId}_{$token}                         // +tag: fresnsUserTokens
fresns_model_user_{$uidOrUsername}                           // +tag: fresnsUserModels
fresns_model_user_{$userId}                                  // +tag: fresnsUserModels
fresns_model_conversation_{$userId}_{$conversationUserId}    // +tag: fresnsUserConversations
fresns_user_{$userId}_main_role_{$langTag}                   // +tag: fresnsUserRoles
fresns_user_{$userId}_roles_{$langTag}                       // +tag: fresnsUserRoles
fresns_publish_{$type}_config_{$userId}_{$langTag}           // +tag: fresnsUserConfigs
fresns_plugin_{$unikey}_badge_{$userId}                      // +tag: fresnsUserConfigs
fresns_interaction_status_{$markType}_{$markId}_{$userId}    // +tag: fresnsUserInteractions
fresns_follow_{$type}_array_by_{$userId}                     // +tag: fresnsUserInteractions, fresnsFollowData
fresns_block_{$type}_array_by_{$userId}                      // +tag: fresnsUserInteractions, fresnsBlockData
fresns_seo_user_{$userId}                                    // +tag: fresnsUserData
fresns_api_user_{$uid}_{$langTag}                            // +tag: fresnsUserData
fresns_api_user_panel_conversations_{$uid}                   // +tag: fresnsUserData, fresnsUserConversations
fresns_api_user_panel_notifications_{$uid}                   // +tag: fresnsUserData, fresnsUserNotifications
fresns_api_user_panel_drafts_{$uid}                          // +tag: fresnsUserData, fresnsUserDrafts

fresnsGroups

  • tag: fresnsGroups
php
fresns_group_count                                           // +tag: fresnsGroupConfigs
fresns_private_groups                                        // +tag: fresnsGroupConfigs
fresns_filter_groups_by_guest                                // +tag: fresnsGroupConfigs, fresnsUsers, fresnsUserInteractions
fresns_filter_groups_by_user_{$userId}                       // +tag: fresnsGroupConfigs, fresnsUsers, fresnsUserInteractions
fresns_model_group_{$gid}                                    // +tag: fresnsGroupModels
fresns_model_group_{$groupId}                                // +tag: fresnsGroupModels
fresns_seo_group_{$groupId}                                  // +tag: fresnsGroupData
fresns_guest_all_groups                                      // +tag: fresnsGroupData
fresns_user_{$userId}_all_groups                             // +tag: fresnsGroupData, fresnsUsers, fresnsUserData
fresns_follow_group_model_{$id}_by_{$userId}                 // +tag: fresnsGroupData, fresnsUsers, fresnsUserInteractions, fresnsFollowData
fresns_api_group_{$gid}_{$langTag}                           // +tag: fresnsGroupData

fresnsHashtags

  • tag: fresnsHashtags
php
fresns_model_hashtag_{$hid}              // +tag: fresnsHashtagModels
fresns_model_hashtag_{$hashtagId}        // +tag: fresnsHashtagModels
fresns_seo_hashtag_{$id}                 // +tag: fresnsHashtagData
fresns_api_hashtag_{$hid}_{$langTag}     // +tag: fresnsHashtagData

fresnsPosts

  • tag: fresnsPosts
php
fresns_model_post_{$pid}                                 // +tag: fresnsPostModels
fresns_model_post_{$postId}                              // +tag: fresnsPostModels
fresns_seo_post_{$id}                                    // +tag: fresnsPostData
fresns_api_post_{$pid}_{$langTag}                        // +tag: fresnsPostData
fresns_api_post_{$pid}_list_content                      // +tag: fresnsPostData
fresns_api_post_{$pid}_detail_content                    // +tag: fresnsPostData
fresns_api_post_{$pid}_allow_{$uid}                      // +tag: fresnsPostData, fresnsUsers, fresnsUserData
fresns_api_post_{$postId}_preview_comments_{$langTag}    // +tag: fresnsPostData, fresnsComments, fresnsCommentData
fresns_api_post_{$postId}_preview_like_users_{$langTag}  // +tag: fresnsPostData, fresnsUsers, fresnsUserData

fresnsComments

  • tag: fresnsComments
php
fresns_model_comment_{$cid}                              // +tag: fresnsCommentModels
fresns_model_comment_{$commentId}                        // +tag: fresnsCommentModels
fresns_seo_comment_{$id}                                 // +tag: fresnsCommentData
fresns_api_comment_{$cid}_{$langTag}                     // +tag: fresnsCommentData
fresns_api_comment_{$cid}_list_content                   // +tag: fresnsCommentData
fresns_api_comment_{$cid}_detail_content                 // +tag: fresnsCommentData
fresns_api_comment_{$commentId}_sub_comments_{$langTag}  // +tag: fresnsCommentData

fresnsModels

  • tag: fresnsModels
php
fresns_model_file_{$fid}                         // +tag: fresnsFiles
fresns_model_file_{$fileId}                      // +tag: fresnsFiles
fresns_model_extend_{$eid}                       // +tag: fresnsExtends
fresns_model_extend_{$extendId}                  // +tag: fresnsExtends
fresns_model_archive_{$code}                     // +tag: fresnsArchives
fresns_model_archive_{$archiveId}                // +tag: fresnsArchives
fresns_model_operation_{$operationId}            // +tag: fresnsOperations
fresns_model_conversation_{$conversationId}      // +tag: fresnsConversations

fresnsExtensions

  • tag: fresnsExtensions
php
fresns_wallet_recharge_extends_by_everyone_{$langTag}           // +tag: fresnsWallets
fresns_wallet_withdraw_extends_by_everyone_{$langTag}           // +tag: fresnsWallets
fresns_post_content_types_by_{$typeName}_{$langTag}             // +tag: fresnsContentTypes
fresns_comment_content_types_by_{$typeName}_{$langTag}          // +tag: fresnsContentTypes
fresns_map_extends_by_everyone_{$langTag}                       // +tag: fresnsMaps

fresns_editor_post_extends_by_everyone_{$langTag}               // +tag: fresnsEditor
fresns_editor_comment_extends_by_everyone_{$langTag}            // +tag: fresnsEditor
fresns_manage_post_extends_by_everyone_{$langTag}               // +tag: fresnsManages
fresns_manage_comment_extends_by_everyone_{$langTag}            // +tag: fresnsManages
fresns_manage_user_extends_by_everyone_{$langTag}               // +tag: fresnsManages
fresns_group_{$groupId}_extends_by_everyone_{$langTag}          // +tag: fresnsGroupConfigs, fresnsGroupExtensions
fresns_feature_extends_by_everyone_{$langTag}                   // +tag: fresnsFeatures
fresns_profile_extends_by_everyone_{$langTag}                   // +tag: fresnsProfiles

fresns_editor_post_extends_by_role_{$roleId}_{$langTag}         // +tag: fresnsEditor
fresns_editor_comment_extends_by_role_{$roleId}_{$langTag}      // +tag: fresnsEditor
fresns_manage_post_extends_by_role_{$roleId}_{$langTag}         // +tag: fresnsManages
fresns_manage_comment_extends_by_role_{$roleId}_{$langTag}      // +tag: fresnsManages
fresns_manage_user_extends_by_role_{$roleId}_{$langTag}         // +tag: fresnsManages
fresns_group_{$groupId}_extends_by_role_{$roleId}_{$langTag}    // +tag: fresnsGroupConfigs, fresnsGroupExtensions
fresns_feature_extends_by_role_{$roleId}_{$langTag}             // +tag: fresnsFeatures
fresns_profile_extends_by_role_{$roleId}_{$langTag}             // +tag: fresnsProfiles

fresns_manage_post_extends_by_group_admin_{$langTag}            // +tag: fresnsManages
fresns_manage_comment_extends_by_group_admin_{$langTag}         // +tag: fresnsManages
fresns_group_{$groupId}_extends_by_group_admin_{$langTag}       // +tag: fresnsGroupConfigs, fresnsGroupExtensions

fresns_plugin_url_{$unikey}                                      // +tag: fresnsExtensionConfigs
fresns_plugin_host_{$unikey}                                     // +tag: fresnsExtensionConfigs

fresnsApiData

  • tag: fresnsApiData
php
fresns_api_archives_{$type}_{$unikey}_{$langTag}     // +tag: fresnsArchives
fresns_api_sticker_tree_{$langTag}                   // +tag: fresnsConfigs

fresnsPlugins

  • tag: fresnsPlugins
  • tag: fresnsPluginAuth

Fresns Engine

  • tag: fresnsWeb
php
'fresns_web_languages'                                  // tag: fresnsWebConfigs
'fresns_web_api_host'                                   // tag: fresnsWebConfigs
'fresns_web_api_key'                                    // tag: fresnsWebConfigs
"fresns_web_key_{$keyId}"                               // tag: fresnsWebConfigs
"fresns_web_api_config_all_{$langTag}"                  // tag: fresnsWebConfigs
"fresns_web_db_config_{$itemKey}_{$langTag}"            // tag: fresnsWebConfigs
"fresns_web_code_message_all_{$unikey}_{$langTag}"      // tag: fresnsWebConfigs
"fresns_web_post_content_types_{$langTag}"              // tag: fresnsWebConfigs
"fresns_web_comment_content_types_{$langTag}"           // tag: fresnsWebConfigs

"fresns_web_account_{$aid}_{$langTag}"                  // tag: fresnsWebAccountData
"fresns_web_user_{$uid}_{$langTag}"                     // tag: fresnsWebUserData
"fresns_web_user_panel_{$uid}_{$langTag}"               // tag: fresnsWebUserData
"fresns_web_post_{$pid}"                                // tag: fresnsWebPostData
"fresns_web_comment_{$cid}"                             // tag: fresnsWebCommentData
"fresns_web_group_categories_by_{$uid}_{$langTag}"      // tag: fresnsWebGroupData
"fresns_web_group_tree_by_{$uid}_{$langTag}"            // tag: fresnsWebGroupData

"fresns_web_users_index_list_by_{$uid}_{$langTag}"      // tag: fresnsWebUserData
"fresns_web_groups_index_list_by_{$uid}_{$langTag}"     // tag: fresnsWebGroupData
"fresns_web_hashtags_index_list_by_{$uid}_{$langTag}"   // tag: fresnsWebHashtagData
"fresns_web_posts_index_list_by_{$uid}_{$langTag}"      // tag: fresnsWebPostData
"fresns_web_comments_index_list_by_{$uid}_{$langTag}"   // tag: fresnsWebCommentData

"fresns_web_users_index_list_by_guest_{$langTag}"       // tag: fresnsWebUserData
"fresns_web_groups_index_list_by_guest_{$langTag}"      // tag: fresnsWebGroupData
"fresns_web_hashtags_index_list_by_guest_{$langTag}"    // tag: fresnsWebHashtagData
"fresns_web_posts_index_list_by_guest_{$langTag}"       // tag: fresnsWebPostData
"fresns_web_comments_index_list_by_guest_{$langTag}"    // tag: fresnsWebCommentData

"fresns_web_users_list_by_{$uid}_{$langTag}"            // tag: fresnsWebUserData
"fresns_web_groups_list_by_{$uid}_{$langTag}"           // tag: fresnsWebGroupData
"fresns_web_hashtags_list_by_{$uid}_{$langTag}"         // tag: fresnsWebHashtagData
"fresns_web_posts_list_by_{$uid}_{$langTag}"            // tag: fresnsWebPostData
"fresns_web_comments_list_by_{$uid}_{$langTag}"         // tag: fresnsWebCommentData

"fresns_web_users_list_by_guest_{$langTag}"             // tag: fresnsWebUserData
"fresns_web_groups_list_by_guest_{$langTag}"            // tag: fresnsWebGroupData
"fresns_web_hashtags_list_by_guest_{$langTag}"          // tag: fresnsWebHashtagData
"fresns_web_posts_list_by_guest_{$langTag}"             // tag: fresnsWebPostData
"fresns_web_comments_list_by_guest_{$langTag}"          // tag: fresnsWebCommentData

"fresns_web_sticky_posts_{$langTag}"                    // tag: fresnsWebPostData
"fresns_web_group_{$gid}_sticky_posts_{$langTag}"       // tag: fresnsWebPostData
"fresns_web_post_{$pid}_sticky_comments_{$langTag}"     // tag: fresnsWebCommentData

Released under the Apache-2.0 License