Issue 90249 - Cached data is not in Library/Cache folder
Summary: Cached data is not in Library/Cache folder
Status: CONFIRMED
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: OOo 3.0 Beta
Hardware: Mac All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-02 12:44 UTC by johandahl
Modified: 2013-01-29 21:45 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description johandahl 2008-06-02 12:44:18 UTC
OpenOffice uses subfolders of ~/Library/Application Support/ to store caches
instead of using a subfolder of ~/Library/Cache

For example

/Users/johan/Library/Application Support/OpenOffice.org-aqua/3/user/registry/cache
/Users/johan/Library/Application
Support/OpenOffice.org-aqua/3/user/uno_packages/cache

This makes it harder to exclude cached-data in backups etc.
Comment 1 eric.bachard 2008-06-02 22:26:49 UTC
@johandahl

I think you are right.

@Oliver : I looked at scp2, in profileitem, and it seems to be a simple change. What do you think ? 

Comment 2 eric.bachard 2008-06-02 22:27:15 UTC
Issue confirmed
Comment 3 nospam4obr 2008-06-03 04:43:25 UTC
I think uno_packages/cache is mis-named as it contains the extensions deployed
for a single user. Excluding it from backup means to lose all extensions in case
you need to restore the data.

Without having looked at scp2 yet (to see how hard a change for registry/cache
would be), I agree with this one being a good candidate to exclude from backup.
Comment 4 Stephan Bergmann 2008-06-03 08:37:01 UTC
Yes, registry/cache is a true cache (while uno_packages/cache is not).  Its
location is defined as $UserInstallation/user/registry/cache at
scp2/source/ooo/profileitem_ooo.scp:1.64 l. 160, and $UserInstallation
ultimately expands to a default of ~/Library/Application
Support/OpenOffice.org-aqua/3 (UserInstallation=$SYSUSERCONFIG in bootstraprc,
or whereever a knowing user makes it point to by modifying bootstraprc; useful
for example to have completely independent instances of OOo running next to each
other).  So, moving registry/cache by default from ~/Library/Application
Support/OpenOffice.org-aqua/3/user/registry/cache to somewhere below
~/Library/Cache and leaving the rest of the UserInstallation tree where it is
would not be that trivial after all, and would raise further questions (what to
do if UserInstallation is not the default $SYSUSERCONFIG?).