Fix #20319: allow pear to work when cache_dir is not writable
Fix #20319: allow pear to work when cache_dir is not writable

marcosptf/pear-core,marcosptf/pear-core,marcosptf/pear-core,marcosptf/pear-core,marcosptf/pear-core,marcosptf/pear-core