On my site i have a custom rule (with rules module) that flags recently viewed content by user (anonymous too).
The rule fires on the event "content is viewed" and then with flags module (and session api for anonymous) flags the node with the current user.
Is there a way to make this rule working with authcache?

Thank you

Comments

salvatore_severo created an issue. See original summary.

salvatore_severo’s picture

znerol’s picture

It really depends on the use case. What is the exact purpose of the flag? What do you do with the data?

Do you want to simply display a list of pages one user has visited? If that is the case, you might want to build a pure JavaScript based approach. E.g. store the page title and the current document location into browser local storage and then render the last 5 entries into a block.

Otherwise, if you require the data stored on the server, you might probably need to add a custom Authcache Fragment. See the various submodules for examples.

znerol’s picture

Status: Active » Postponed (maintainer needs more info)
znerol’s picture

Status: Postponed (maintainer needs more info) » Closed (outdated)