Problem with SVG Cache
Marco Martin
notmart at gmail.com
Fri Mar 13 09:56:02 CET 2009
On Thursday 12 March 2009, Arthur Renato Mello wrote:
> Hello,
>
> I am facing a issue using svg on plasmoids. If I update/change the
> used svg file, the plasmoid will keep with the old pixmap from cache.
> If I understood the code correctly, all svg files will be stored on
> cache (even the ones that are not on a theme dir). but the cache will
> only discard an entry if we have a color scheme or a theme change. A
> file change, if the file still exist, is never checked.
what i was thinking about is checking the file timestamp only when a svg-
>setImagePath is done and when the file doesn't belong to the theme (or
doesn't belong to widgets or dialogs folders) this shouldn't add too much
overhead since those files are hopefully as less as possible and should have
less unexpected results..
> This is a issue if you try to pack a single plasmoid. When user
> install a new version any svg change will be ignored by cache.
> By now I can try invalidate cache manually, but that is kind of a
> problem for each new plasmoid release.
>
> I talked a little about it on #plasma but I was not able to find a fix
> that do not involve checking file timestamp. But using that will slow
> down plasma performance with many disk access, right?
>
> Do you guys think that is a real issue, or should I keep doing this
> manually? Anyone has an idea how is the best way to handle this?
>
> Cheers,
> Arthur
> _______________________________________________
> Plasma-devel mailing list
> Plasma-devel at kde.org
> https://mail.kde.org/mailman/listinfo/plasma-devel
More information about the Plasma-devel
mailing list