Skip to main content

Archetypes Schema caching - a tune up patch.

Project description

An Archetypes Schema is looked up several times each request an Archetypes is accessed, like 60 times or more (depends on the number of fields).

This package patches the Schema method on BaseObject. The Schema is now calculated only once and then cached in RamCache. The cache-key takes care about class-name, portal_type and interfaces provided by the Archetypes object. any suggestions what else needed are welcome. It works fine with archetypes.schemaextender and speeds it up.

The package does not contain tests. To verify its working just run the Archetypes tests.

To enable the package you need to import the module somewhere in your code OR you need to include the configure.zcml i.e. in your buildout.

The module expects an eggified version of Archetypes like its shipped with Plone 3.2 - or some fake-egg for Products.Archetypes.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

archetypes.schematuning-1.0.tar.gz (2.7 kB view details)

Uploaded Source

File details

Details for the file archetypes.schematuning-1.0.tar.gz.

File metadata

File hashes

Hashes for archetypes.schematuning-1.0.tar.gz
Algorithm Hash digest
SHA256 ad62eb101195c3f56a65e292ce02aa9365bf946aa957cfbf47f25f63f615ae00
MD5 5dbc77aa2132168e3f9e0f2d9d7783f4
BLAKE2b-256 a1e874b3a92f3050655ed480279adcf85064c4e7d050e49bb022c95e4143503a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page