put social partial in themes, improve db caching
fix for cagegory links and search page