Skip to content

Commit

Permalink
issue #12176 invalidate page cache once multitree is updated
Browse files Browse the repository at this point in the history
  • Loading branch information
joseorsini committed Oct 2, 2017
1 parent 24394af commit 3387de6
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@
import com.dotmarketing.portlets.templates.model.Template;
import com.dotmarketing.portlets.user.factories.UserPreferencesFactory;
import com.dotmarketing.portlets.user.model.UserPreference;
import com.dotmarketing.services.ContentletServices;
import com.dotmarketing.services.PageServices;
import com.dotmarketing.util.Config;
import com.dotmarketing.util.InodeUtils;
import com.dotmarketing.util.Logger;
Expand Down Expand Up @@ -590,6 +592,7 @@ else if (workingLink.isLocked()) {
MultiTreeFactory.saveMultiTree(mTree);
updatePageModDate(htmlPage, user);
}
PageServices.invalidateAll(htmlPage);
}

} else {
Expand Down Expand Up @@ -651,7 +654,7 @@ else if (workingLink.isLocked()) {
MultiTree multiTree = MultiTreeFactory.getMultiTree(htmlPageIdentifier,containerIdentifier,identifier);
Logger.debug(DirectorAction.class, "multiTree=" + multiTree);
MultiTreeFactory.deleteMultiTree(multiTree);

PageServices.invalidateAll(htmlPage);
updatePageModDate(htmlPage, user);
} catch (DotRuntimeException e) {
Logger.error(this, "Unable to remove content from page", e);
Expand Down Expand Up @@ -760,6 +763,7 @@ else if (workingLink.isLocked()) {

}
}
PageServices.invalidateAll(htmlPage);
_sendToReferral(req, res, referer);
return;
}
Expand Down Expand Up @@ -829,7 +833,7 @@ else if (workingLink.isLocked()) {

}
}

PageServices.invalidateAll(htmlPage);
_sendToReferral(req, res, referer);
return;

Expand Down

0 comments on commit 3387de6

Please sign in to comment.