Project

General

Profile

Revision 3412cfed

ID3412cfed78ebb614a8c6a891e17a8ad691e29734
Parent abaef8e2
Child 94dd2a5d

Added by Katja Luther over 1 year ago

ref #8096: smaller changes for update caches

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/name/TaxonName.java
3626 3626
    private boolean updateFullTitleCache() {
3627 3627
        if (protectedFullTitleCache == false){
3628 3628
            String oldCache = this.fullTitleCache;
3629
            String newCache = cacheStrategy.getFullTitleCache(this);
3629
            String newCache = getTruncatedCache(cacheStrategy.getFullTitleCache(this));
3630 3630
            if (!CdmUtils.nullSafeEqual(oldCache, newCache)){
3631 3631
                this.setFullTitleCache(null, false);
3632 3632
                this.getFullTitleCache();
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/reference/Reference.java
1175 1175
       if (this.protectedAbbrevTitleCache == false){
1176 1176
           String oldAbbrevTitleCache = this.abbrevTitleCache;
1177 1177

  
1178
           String newAbbrevTitleCache = cacheStrategy.getFullAbbrevTitleString(this);
1178
           String newAbbrevTitleCache = getTruncatedCache(cacheStrategy.getFullAbbrevTitleString(this));
1179
           if (newAbbrevTitleCache.equals("")){
1180
               newAbbrevTitleCache = cacheStrategy.getTitleCache(this);
1181
           }
1179 1182

  
1180 1183
           if ( oldAbbrevTitleCache == null   || ! oldAbbrevTitleCache.equals(newAbbrevTitleCache) ){
1181 1184
                this.setAbbrevTitleCache(null, false);

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)