Skip to content

An option to skip should_use_cache? method #521

@dotai2012

Description

@dotai2012

I've just found that if a query is wrapped inside a transaction, IdentityCache will call the database directly

if should_use_cache?

However, in my case, there are some models doesn't need this (read a lot and rarely write)

Is there an option to skip this feature? Eg:

class TestModel < ApplicationRecord
  include IdentityCache
  skip_transaction: true
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions