How to clear Chromium Browser cache?

53

On Linux you can clear the browser cache using the following command, after closing the browser:

Chromium

The browser cache is stored in different directories depending on whether Chromium is installed as a regular package or as a snap. Run

$ which chromium

to find out which one your system is using. Examples:

/usr/bin/chromium   -> traditional package
/snap/bin/chromium  -> snap

Installed from regular package

rm -rf ~/.cache/chromium

Installed from snap

rm -rf ~/snap/chromium/common/.cache/chromium

Google Chrome

rm -rf ~/.cache/google-chrome
Share:
53

Related videos on Youtube

sooraj s pillai
Author by

sooraj s pillai

Updated on September 18, 2022

Comments

  • sooraj s pillai
    sooraj s pillai almost 2 years

    I want to get the count of active records by using a specific id , i tried using this code but i did not get proper output.

        public function package_category_listing()
    {   
    
        $query = $this->db->get("mn_package_category");
        $data['records'] = $query->result();
        foreach($data['records'] as $r)
        {
        $c=$r->category_id;
    
        }
        $query = $this->db->query('SELECT * FROM mn_package WHERE `category_id` = '.$c);
        $data['data']= $query->num_rows();
        $this->load->view('admin/package/package_category_listing',$data );
    }
    
    • Always Sunny
      Always Sunny almost 7 years
      do you have any idea what this line $c=$r->category_id; do inside foreach loop? it is overwriting $c every time.
    • sooraj s pillai
      sooraj s pillai almost 7 years
      yes thai is the category id , with that category id i want to select package from the table
    • DFriend
      DFriend almost 7 years
      Is your ultimate goal to find the total records using each 'category_id'?
  • nefu_01
    nefu_01 almost 7 years
    Ups, I meant 'AND active = true'
  • SpeedCoder5
    SpeedCoder5 over 3 years
    Hmm. On Ubuntu 20.04 installed from snap ~/snap/chromium/common/.cache/chromium did not exist on my system. So rm -rf ~/snap/chromium/common/.cache worked for me.