Open shixue opened 7 months ago
Tags
can be added to the Model
after the queried.
getCacheTagsToInvalidateOnUpdate()
method to obtain the Model of the specified Tags, if the Model exists to specify Tags.
@shixue would you mind explaining how to add tags after a query is made?
The cause of this bug (issues #97) :
QueryCacheable:
Example:
When specifying the
cacheTags
getCacheTagsToInvalidateOnUpdate()
method should return it. All that is returned so far isgetCacheBaseTags()
, the cached updated tags arestatic::class
, not the specified tags. Just like theflushQueryCache()
method, use it if tags are specified, otherwise use thegetCacheBaseTags()
method.