Skip to content

Comments

Clear model cache when using upsert#154

Merged
LukeTowers merged 1 commit intowintercms:developfrom
zimudec:develop
Aug 22, 2023
Merged

Clear model cache when using upsert#154
LukeTowers merged 1 commit intowintercms:developfrom
zimudec:develop

Conversation

@zimudec
Copy link
Contributor

@zimudec zimudec commented Aug 21, 2023

Currently a memory cache is used to avoid making unnecessary calls to the database, when there have been no changes.

This cache is cleared by executing insert, update, delete or truncate. With this change, the cache is also cleared when using upsert.

  • Clear model cache when using upsert
  • Testing for upsert with memory cache

- Testing for upsert with memory cache
zimudec added a commit to zimudec/docs that referenced this pull request Aug 21, 2023
@bennothommo bennothommo added this to the v1.2.4 milestone Aug 21, 2023
@LukeTowers LukeTowers merged commit 391bd3e into wintercms:develop Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants