from .utils import expire_page


class ExpireCacheMiddleware(object):

    def process_request(self, request):
        if '__placeholder_expire_page' in request.GET:
            expire_page(request.path)

    def process_response(self, request, response):
        if '__placeholder_expire_page' in request.GET:
            expire_page(request.path)

d21e6f5bdab2767c81ac29223d343fa7fcbcc4a0
<mask token>

<mask token>


class ExpireCacheMiddleware(object):
    <mask token>
    <mask token>

<mask token>


class ExpireCacheMiddleware(object):
    <mask token>

    def process_response(self, request, response):
        if '__placeholder_expire_page' in request.GET:
            expire_page(request.path)

<mask token>


class ExpireCacheMiddleware(object):

    def process_request(self, request):
        if '__placeholder_expire_page' in request.GET:
            expire_page(request.path)

    def process_response(self, request, response):
        if '__placeholder_expire_page' in request.GET:
            expire_page(request.path)

from .utils import expire_page


class ExpireCacheMiddleware(object):

    def process_request(self, request):
        if '__placeholder_expire_page' in request.GET:
            expire_page(request.path)

    def process_response(self, request, response):
        if '__placeholder_expire_page' in request.GET:
            expire_page(request.path)
