Add backwards compatibility for Portfolio settings tab
Fix an issue with rewrite cache flush upon save

Flush rewrite rules upon setting save and only when settings are saved
on portfolio tab.