Update index.php

Bug fix in cache for search (was not working properly)