معرفی شرکت ها


cubicweb-varnish-0.8.0


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

cubicweb varnish helper
ویژگی مقدار
سیستم عامل -
نام فایل cubicweb-varnish-0.8.0
نام cubicweb-varnish
نسخه کتابخانه 0.8.0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده LOGILAB S.A. (Paris, FRANCE)
ایمیل نویسنده contact@logilab.fr
آدرس صفحه اصلی https://forge.extranet.logilab.fr/cubicweb/cubes/cubicweb-varnish
آدرس اینترنتی https://pypi.org/project/cubicweb-varnish/
مجوز LGPL-2.1
Summary ------- This cubes enables a purge mechanism for a cubicweb website that is sitting behind a varnish cache. Internals --------- The purge mechanism consists of sending purge commands to the administration backend of varnish (by default localhost:6082). Generally it is recommended to protect this management port with a secret file which can be configured in this cube. Multiple backends can be controlled in this manner in a distributed setup. Out of the box, this cube will not purge any URLs. The logic of which pages should be "purged" has to be implemented in content cubes. To configure which urls to purge, you have to implement an `IVarnishAdapter`, for example :: .. sourcecode:: python from cubes.varnish.entities import IVarnishAdapter class BlogEntryVarnishAdapter(IVarnishAdapter): __select__ = is_instance('BlogEntry') def urls_to_purge(self): return ('/', #frontpage self.entity.absolute_url(), #URL of blog post '/BlogEntry' # list of blog entries) Debugging : cubicweb-varnish will not crash when it cannot connect to the administrative port, it will silently log an error in the log. Docker & Kubernetes ------------------- When deploying on docker or kubernetes, you can configure this with : * `CW_VARNISHCLI_HOSTS=fqdn:6082,IP:PORT` (csv with host:port) * `CW_VARNISH_SECRETS=/etc/varnish_shared_secret_token` (filename with token in it) Dependencies ------------ http://www.varnish-cache.org/ or apt-get install varnish (for debian derived distributions)


نیازمندی

مقدار نام
<3.39.0,>=3.31.0 cubicweb


نحوه نصب


نصب پکیج whl cubicweb-varnish-0.8.0:

    pip install cubicweb-varnish-0.8.0.whl


نصب پکیج tar.gz cubicweb-varnish-0.8.0:

    pip install cubicweb-varnish-0.8.0.tar.gz