Git Product home page Git Product logo

products.mcdutils's Introduction

Documentation Status Current version on PyPI Supported Python versions

Products.mcdutils

The Products.mcdutils product supplies a replacement for the ZODB-based session data container supplied by the Transience product, shipped with the Zope core prior to Zope 4 and available as a separate package after that. Rather than using a ZODB storage as the backing store for session data, as Transience does, Products.mcdutils stores session data in a cluster of one or more memcached servers.

This approach is a bit of a cheat, as it uses the daemons as primary stores, rather than as caches for results of an expensive query. Nevertheless, the semantics are not a bad match for typical session usage.

products.mcdutils's People

Contributors

ctheune avatar dataflake avatar drfho avatar rber474 avatar tseaver avatar

Watchers

 avatar  avatar

products.mcdutils's Issues

Error during ZCache_invalidate

Happened while associating an object that was handled by a Memcache-cache manager to a RAM cache manager.

Traceback (most recent call last):
  File "/xxxZope2-2.13.26-py2.7.egg/OFS/Cache.py", line 197, in ZCacheable_invalidate
    message = c.ZCache_invalidate(ob)
  File "/xxx/Products.mcdutils-2.0-py2.7.egg/Products/mcdutils/zcache.py", line 73, in ZCache_invalidate
    proxy.remove(key)
AttributeError: remove

AttributeError: 'MemCacheMapping' object has no attribute 'invalidate'

Zope5 and Plone 6.x, when invalidating session data, as in logout, an AttributeError: 'MemCacheMapping' object has no attribute 'invalidate' is raised.

Traceback (innermost last): Module ZPublisher.WSGIPublisher, line 181, in transaction_pubevents Module ZPublisher.WSGIPublisher, line 390, in publish_module Module ZPublisher.WSGIPublisher, line 285, in publish Module ZPublisher.mapply, line 85, in mapply Module ZPublisher.WSGIPublisher, line 68, in call_object Module Products.CMFPlone.browser.login.logout, line 20, in __call__ Module Products.PlonePAS.tools.membership, line 702, in logoutUser AttributeError: 'MemCacheMapping' object has no attribute 'invalidate'

Probably, a new attribute invalidate may be necesary in MemCacheMapping like "delete"

Per site Timeout

As an idea for improvement, a property for configuration of a per site timeout of session object would be very useful in multi subdomains setups.

Excellent product, thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.