Rewritten n3phele ajax requests to use cache algorithm