add cache for permalink
update sealscript
add cache decorator