Skip to main content

Introduction

PageCacheManager is designed to speed up access to content views while at the same time making sure that stale content is not served up.

Installation

PageCacheManager is designed specifically for caching views of content objects. Unlike RAMCacheManager, PageCacheManager caches both the html generated by a view as well as the HTTP headers.

PageCacheManager builds upon Zope’s standard cache manager machinery. As with RAMCacheManager, you associate some page templates with the cache manager and configure the properties. PageCacheManager requires an extra step: content to be cached must generate an ETag via a caching policy. PageCacheManager looks for a CachingPolicyManager with id caching_policy_manager. If it finds it, it then gets an ETag for the current template + content object combination. This ETag is then used as the index into the cache. If you don’t have an ETag generated for your content, your pages will not be cached.

If you create an ETag that changes when the content is changed, then the content served up by the cache will stay fresh. There will be a cache miss the first time the page is hit after the ETag changes, then subsequent hits to the newly modified content view will reflect the new version. If your content view is personalized, you will want your ETag to vary depending on the current user. A good ETag with these properties is as follows:

ETag = id of currently authenticated user + delimiter + last modified time

for content + delimiter + current time rounded to the nearest hour

The use of the id in the ETag means that every user’s view of a content object will have a different ETag, so everybody will get different cached objects. The use of the modification time means that every time the content object changes, it will generate different ETags and hence will result in new copies being pulled from the cache. The use of the current time rounded to the nearest hour means that nothing will be served up by the cache for more than an hour.

Added bonus: PageCacheManager handles conditional GETs. If the incoming request has an If-Modified-Since header with an ETag that matches the content object’s current ETag, PageCacheManager will set a status 304 header (Not Modified) and will return no content.

Changelog

1.2 - 2008-01-16

  • Repackage PageCacheManager is a python egg. [wichert]

Release files for Products.PageCacheManager 1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Products.PageCacheManager 1.2
File Size Uploaded
Products.PageCacheManager-1.2.tar.gz 12.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Products.PageCacheManager 1.2
File Interpreter ABI Platform
Products.PageCacheManager-1.2-py2.4.egg Legacy Egg format - - Details

Total release size: 33.8 kB

Release files / Products.PageCacheManager-1.2.tar.gz

Download URL Products.PageCacheManager-1.2.tar.gz
Size 12.3 kB
Tags Source
SHA-256 checksum
How to use checksums
2f9e324e7ba7e2d59d44393a19a6bb018db6527667988e011da7a33136cc3b0b
BLAKE2b-256 checksum
How to use checksums
204e1b01d77906b3fec45dc4d50b29c41fecf8959805cd95206617bf3129a536
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / Products.PageCacheManager-1.2-py2.4.egg

Download URL Products.PageCacheManager-1.2-py2.4.egg
Size 21.4 kB
Tags Egg
SHA-256 checksum
How to use checksums
46e8385ed1296c37d714711465cba55bef4fc0c8614832743957a978dd9e611a
BLAKE2b-256 checksum
How to use checksums
ba96a1ee076d7b418ead652e0fd3bb9907c71e0d73b06094e41351b2e032f62e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page