buda-base / lds-pdi

http://purl.bdrc.io BDRC Linked Data Server
Apache License 2.0
2 stars 0 forks source link

clearcache doesn't seem to work #158

Closed xristy closed 4 years ago

xristy commented 4 years ago

While testing some changes in text searching I'm comparing results between library.bdrc.io while monitoring the fuseki log to see what queries are being issued.

Using:

curl -X POST http://purl.bdrc.io/clearcache

which replies OK, does not appear to clear sufficient caching since when I reissue the query from library.bdrc.io, I don't see the query reissued to fuseki.

I've cleared caches in my browsers and tried various browsers and so on.

MarcAgate commented 4 years ago

I cannot reproduce the issue (I keep trying). Meanwhile, you can check the following page that gives you a full status of the cache and memory. http://purl.bdrc.io/cache

MarcAgate commented 4 years ago

Still no success in reproducing the issue. Below is what I do:

I make this request: http://localhost:8080/query/table/BLMP?L_NAME=(%22mkhan+chen%22+AND+(%22%27od+zer%22+OR+%22ye+shes%22))&LG_NAME=bo-x-ewts&I_LIM=100

and see it in /usr/local/fuseki/tomcat/logs/catalina.out

I make the same request, then check the log file again: it doesn't appear a second time, so fuseki wasn't called.

Then i do this (clear the cache): curl -X POST http://purl.bdrc.io/clearcache and check here : http://purl.bdrc.io/cache that the number of objects in the cache is zero.

Then I resend my request: http://localhost:8080/query/table/BLMP?L_NAME=(%22mkhan+chen%22+AND+(%22%27od+zer%22+OR+%22ye+shes%22))&LG_NAME=bo-x-ewts&I_LIM=100

that appears a second time in fuseki tomcat logs (fuseki was called).

Unless I missed something, I suspect a browser cache issue or some additional caching in library.bdrc.io (which would be very weird !).

xristy commented 4 years ago

Apparently my errtor. I can't reproduce either