Non paginated cache is not getting updated when saving using persist method

Description

When saving using a class that does not contain any finder methods, the cache will not reset itself when listing objects in a non paginated query.

To reproduce:
1) Use the ams-portlet plugin and save an asset.
2) You'll notice that the list that gets returned does not contain the newest asset added.

Workaround: when you "Clear the database cache" in control panel -> Server Administration, you will now see the asset you added show up in the list.

Activity

Show:

Cynthia Wilburn March 12, 2012 at 2:16 PM

Reopening to add 6.1.1 CE GA2. Close as Fixed.

Sophia.Zhang February 20, 2012 at 10:24 PM

PASSED Manual Testing using the following steps:

1. Deploy ams-portlet plugin.
2. Add this application with name *Asset Management System*.
3. Add asset.

Reproduced on:
Tomcat 7.0 + MySQL 5. 6.1.x GIT ID: b77c8a85c946e35ce93da4d0e14816337bcd3edc.

The added asset doesn't list until you "Clear the database cache" in control panel -> Server Administration.

Fixed on:
Tomcat 7.0 + MySQL 5. 6.1.x GIT ID: ba9813645eca6eab680e4121d6d4ae3ca8f1c404.
Tomcat 7.0 + MySQL 5. 6.2.x GIT ID: fcfb50d00f9c3b05bf819a0509ec7cd998da0440.

The new added assets display immediately.

Michael Saechang February 13, 2012 at 5:49 PM

Committed on:
6.1.x GIT ID: 528bdfe121b6527501e59b79cc3b74b1ecb605e4.
6.2.x GIT ID: c6d4d278b078a323b6fc62e651c71e8aebb58980.

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Labels

Branch Version/s

6.1.x

Backported to Branch

Committed

Affects versions

Priority

Zendesk Support

Created February 13, 2012 at 4:36 PM
Updated June 24, 2023 at 3:52 PM
Resolved March 12, 2012 at 2:35 PM

Flag notifications