Optimize retention delete code.

Rewrite PostgreSQL queries to delete Spots by suggestions of tiki1980 (GH issue #1885).
Added expiration of cache entries when expire fullonly was set.
Added a notice to retrieve.php to visually show when we are expiring items.