Make as many copies as there are number of versions for the file in plone?

In plone, does the number of physical copies of a file (or any content) exist if it is revised, say, 4 times? I am using plone 4.1, in which files and images are stored in the file system.

+4
source share
2 answers

Content objects consist of several persistent records. For images and files containing the blob binary in the file system.

When a content object is modified, only records that are subject to change are recorded as part of the transaction. Old records are not cleared at this point, so you get several copies, yes.

Thus, every time you change the binary content of a file or image, a new copy is created with this new data, and the old version is saved. If, however, you change only the name or date of publication, the blob file is not affected, you will not receive an extra copy of the data unchanged.

You use ZODB packaging to delete old transaction data. Please note that by packaging you also remove the ability to undo changes for which the old state was deleted by the package.

+5
source

If you modify the content in any way (or just save it), an object is duplicated (which allows you to cancel later). If you change only metadata (for example, the title), the object is usually not duplicated.

These duplicate copies of the β€œbackups” are deleted (and the undo option for them) whenever the database is packed.

There, the rules depend on a permanent object: these are almost all ordinary Zope (and Plone) objects. Some exceptions may exist, but they are rare.

0
source

Source: https://habr.com/ru/post/1442443/


All Articles