Ask / Submit
7

Huge images cache for VK.com account

asked 2018-12-07 21:12:56 +0300

Self-Perfection gravatar image

updated 2018-12-10 21:01:03 +0300

rozgwi gravatar image

I've tried to figure out what takes space on my Jolla C and discovered that

$ devel-su du -sh
~/.local/share/system/privileged/Images/cache
Password: 
1,3G    /home/nemo/.local/share/system/privileged/Images/cache

Upon closer examination I found that these are images from vk.com event feed. Currently there are 17699 of these images since 2017-06-04. Apparently these images are just accumulated to be shown in event stream and never deleted.

Quite severe bug IMHO. There is no way for ordinary user to delete these images without root access.

edit retag flag offensive close delete

Comments

So it is problem with this vk-thingy site...?

juiceme ( 2018-12-11 16:35:23 +0300 )edit
1

@juiceme, I do not quite understand your question. I'm quite sure that the bug is not in vk.com website, but in SailfishOS integration. More precisely in "Settings -> Accounts -> VK -> Download -> Feeds and notification" feature. Images from feeds are stored indefinitely without any visible indication and any way for ordinary user to clear them.

Self-Perfection ( 2018-12-12 08:04:37 +0300 )edit

well, what I meant is I have no idea what vk.com is but if it is pushing such huge amount of images to you then there must be something wrong :)

juiceme ( 2018-12-12 10:02:15 +0300 )edit
1

@juiceme , vk.com is the "russian facebook". And for social network producing about ~40 images per day in event feed is very, very normal.

Self-Perfection ( 2018-12-12 18:13:25 +0300 )edit

1 Answer

Sort by » oldest newest most voted
1

answered 2019-01-30 07:05:55 +0300

AlexOm gravatar image

updated 2019-02-03 09:44:12 +0300

Self-Perfection gravatar image

I think the better way could be to create an /etc/cron.daily/images.cache script like this one:

#!/bin/sh
find /home/nemo/.local/share/system/privileged/Images/cache -type f -mtime +1 -delete

could it?

Please, don't forget to make it executable by chmod 755 /etc/cron.daily/images.cache

(may be developer will add a global clearing scripts for some more types of cache later, don't know)

edit flag offensive delete publish link more

Comments

@AlexOm I took liberty to enhance cleanup command that you proposed. Before edit it spawned rm process for each deleted file and that is quite inefficient.

Self-Perfection ( 2019-02-03 09:49:24 +0300 )edit

Also if I recall correctly, cron is not available on SailfishOS by default and it uses systemd timers instead.

Self-Perfection ( 2019-02-03 09:52:20 +0300 )edit

It would be nice to integrate such a clean-up measure into Mashka, which would make it easily available for all VK users (including those without experience at the command line).
Maybe someone affected can issue a Pull Request or at least a Bug Report linking here at Github.

olf ( 2019-02-03 17:35:19 +0300 )edit

@olf indeed mashka seems suitable to handle this. Have not heard about this app before. I've created feature request https://github.com/mentaljam/harbour-mashka/issues/4

Self-Perfection ( 2019-02-03 22:34:13 +0300 )edit

Sekf-Perfection, Thanks a lot! Btw nowadays there is another trouble with

Vk.Com

I see. There are no ability to add new profile VK-account in Preferences maybe due to Vk-API restrictions :(( ...just see a one-second pop-up of VK-authorization dialog and then pops up SFOS's message about account adding error.

AlexOm ( 2019-04-22 11:20:26 +0300 )edit
Login/Signup to Answer

Question tools

Follow
4 followers

Stats

Asked: 2018-12-07 21:12:56 +0300

Seen: 410 times

Last updated: Apr 22