Comments

aalin created an issue. See original summary.

aalin’s picture

Status: Active » Needs review
aalin’s picture

StatusFileSize
new1.91 KB

a more generic patch, to disable the cache only when the service 'recently_read' is used

nkoporec’s picture

Status: Needs review » Needs work

Latest patch doesn't apply. Marking it as needs work.

afi13’s picture

afi13’s picture

Status: Needs work » Needs review
jeroent’s picture

StatusFileSize
new6.65 KB

What about keeping Drupal caching intact and using javascript to add a record. Just like the statistics module in core.

eric.vvf’s picture

StatusFileSize
new6.64 KB

Just a small change on @JeroenT's patch:

$build['cache']['tags'][] = 'recently_read_type_list';

to

$build['#cache']['tags'][] = 'recently_read_type_list';

Adds '#' so it will be used as meta.

bzoks’s picture

StatusFileSize
new6.27 KB
new3.93 KB

I rerolled patch #8 to 8.x-1.x-dev (it applied cleanly only on released 8.x-1.x).
It seems to work OK.

strozx’s picture

Status: Needs review » Reviewed & tested by the community

Tested and it appears to work

marysmech’s picture

Status: Reviewed & tested by the community » Needs review
StatusFileSize
new7.38 KB

I was unable to apply patch #9 with latest develop. So I just reformated patch from #9 with latest develop. After reformatting everything seems to work nicely.

Status: Needs review » Needs work

The last submitted patch, 11: 0001-Use-js-to-add-recently-read-record-on-node-detail.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

nkoporec’s picture

Tests are failing + need's a re-roll.

boshtian’s picture

I'm looking at this issue and would like to go back to the initial solution of fixing this without changing the way visits are saved.

I'm not saying, that the Javascript approach is bad, I just don't think it's ready, because we currently don't have a fallback for users with javascript disabled. I would rather open a separate issue for moving things to javascript (and discuss the correct approach there) and leave this open if anyone wants to add a patch for existing codebase.

jjtoyas’s picture

StatusFileSize
new1.04 KB

Disable cache for "full" view mode, without JavaScript.

jjtoyas’s picture

Status: Needs work » Needs review
nmatja’s picture

StatusFileSize
new1.96 KB
new1.3 KB

I have tested the patch. The patch fixes the problem and it's working without any problems. I spotted and fixed some minor code standards issues.

  • boshtian committed 9b5cc10 on 8.x-1.x authored by jjtoyas
    Issue #3001966 by aalin, bzoks, nmatja, jjtoyas, afi13, JeroenT, eric....
boshtian’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

kazajhodo’s picture

StatusFileSize
new6.76 KB

WHOOPS, don't use this, it has a yml syntax error. Worked locally but not on the server. I can't edit the file, so I'm uploading a new one I guess.

-----
Not exactly sure how I'm supposed to submit this, I see everyone is submitting patch files, so I'll just do that.

This is a reroll of 0001-Use-js-to-add-recently-read-record-on-node-detail.patch against the dev. Had a big site where the caching was broken, found the patch and rerolled it.

kazajhodo’s picture

kazajhodo’s picture

StatusFileSize
new6.75 KB

Ok, I think this one is good.

A reroll of #11 by @marysmech.

kazajhodo’s picture

StatusFileSize
new2.97 KB

Reroll for for 1.5.