[MAGNOLIA-1495] CacheManagementPage does nothing : drop it Created: 27/Apr/07  Updated: 23/Jan/13  Resolved: 27/Apr/07

Status: Closed
Project: Magnolia
Component/s: admininterface
Affects Version/s: None
Fix Version/s: 3.1 M1

Type: Task Priority: Major
Reporter: Magnolia International Assignee: Magnolia International
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
relation
is related to MAGNOLIA-1496 New tool pages (flush cache, synchron... Closed
Template:
Acceptance criteria:
Empty
Task DoR:
Empty

 Description   

The CacheManagementPage was supposed to force the generation of the complete cache. The code is however completely commented out, so it just does nothing.
I'd be in favor of dropping this.

However, that feature could be useful along with other tools like cache-flushing, workspace-synchronization etc.



 Comments   
Comment by Magnolia International [ 27/Apr/07 ]

done.

Just for the record, the piece of code that was supposedly going to generate the cache:
private void cachePage(Content page, HttpServletRequest request) {
// Collection children = page.getChildren();
// Iterator iter = children.iterator();
// while (iter.hasNext()) {
// Content item = (Content) iter.next();
// MockCacheRequest mock = new MockCacheRequest(request, item);
// // @todo fix the canCompress parameter
// this.cacheManager.cacheRequest(mock, true);
// if (log.isDebugEnabled())

{ // log.debug("Trying to cache request:" + mock.getRequestURL()); // }

// cachePage(item, request);
// }
}

Generated at Mon Feb 12 03:27:28 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.