Issue #2181289 by mradcliffe: Prevent exceptions on missing cache table during cache clear for pgsql.
Issue #2110863 by sun, cpj: Support open_basedir.