Opened 14 years ago
Closed 14 years ago
#1568 closed defect (fixed)
Raw data types cache is not updated automatically when a new file-only platform is created
Reported by: | Nicklas Nordborg | Owned by: | Nicklas Nordborg |
---|---|---|---|
Priority: | trivial | Milestone: | BASE 2.16.2 |
Component: | core | Version: | |
Keywords: | Cc: |
Description
This is slightly related to #1567. A file-only platform needs a corresponding raw data type for BASE to work correctly. Usually everything is initialized when the server starts up. The raw data types that are stored in configuration files and the platforms that are stored in the database are combined into a memory cache.
However I have discovered that the cache is not automatically updated when a new platform is created. Yet it seems to work when adding new platforms using the web interface. But this is only because the list page is reloaded and it contains a call to the Platform.getRawDataType()
method which triggers a search in the database when the information is not found in the cache. Other execution paths (eg. plug-ins) may not trigger this update and may result in a cache that is not consistent with what is in the database.
In my opinion the raw data type should be added to the cache by the core when the plateform is saved to the database.
Change History (2)
comment:1 by , 14 years ago
Milestone: | → BASE 2.16.2 |
---|---|
Owner: | changed from | to
Priority: | minor → trivial |
Status: | new → assigned |
comment:2 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
(In [5544]) Fixes #1568: Raw data types cache is not updated automatically when a new file-only platform is created
And also removes the raw data type from the cache when a platform is deleted.