(pillow_id, couch_db, couch_filter=None)
return ConstructedPillow(
        name=pillow_id,
        checkpoint=checkpoint,
        change_feed=change_feed,
        processor=CacheInvalidateProcessor(),
    )
Pillow that listens to changes and invalidates the cache whether it's a single doc being cached or a view.

    Processors:
      - :py:class:`corehq.pillows.cache_invalidate_pillow.CacheInvalidateProcessor`
Pillow that listens to changes and invalidates the cache whether it's a single doc being cached or a view.
Pillow that listens to changes and invalidates the cache whether it s a single doc being cached or a view .
def _get_cache_invalidation_pillow(pillow_id, couch_db, couch_filter=None):
    """Pillow that listens to changes and invalidates the cache whether it's a single doc being cached or a view.

    Processors:
      - :py:class:`corehq.pillows.cache_invalidate_pillow.CacheInvalidateProcessor`
    """
    checkpoint = FakeCheckpoint(
        'cache_invalidate_pillow', couch_db
    )
    change_feed = CouchChangeFeed(couch_db, couch_filter=couch_filter)
    return ConstructedPillow(
        name=pillow_id,
        checkpoint=checkpoint,
        change_feed=change_feed,
        processor=CacheInvalidateProcessor(),
    )
def _get_cache_invalidation_pillow ( pillow_id , couch_db , couch_filter = None ) : checkpoint = FakeCheckpoint ( 'cache_invalidate_pillow' , couch_db ) change_feed = CouchChangeFeed ( couch_db , couch_filter = couch_filter ) return ConstructedPillow ( name = pillow_id , checkpoint = checkpoint , change_feed = change_feed , processor = CacheInvalidateProcessor ( ) , )