I get the following message when accessing pages with the meta tag shortlink in the headers :

Excluded: Not invoked using an allowed front controller.

The error is generated by :

https://dev-ent.univ-nc.nc/authcache.php?a=&r=frag/menu-local-tabs&o[q]=...

which seems to relate to the following tag in the header of the page :
<link rel="shortlink" href="/node/68">

The route to menu-local-tabs exists :

frag/menu-local-tabs AuthcacheP13nDefaultRequestHandler AuthcacheP13nDefaultRequestUrlGenerator

How do I get rid of this message ?

Thanks.
Seb

Comments

sebnoumea’s picture

Issue summary: View changes
sebnoumea’s picture

After deactivating authcache_menu module, the message disappears for menu-local-tabs.
BUT, whenever I have a block configured for authcache I get the same error :

EMPLACEMENT https://dev-ent.univ-nc.nc/authcache.php?a=&r=frag/block/ent_user-ent_us...
RÉFÉRENT https://dev-ent.univ-nc.nc/
MESSAGE Excluded: Not invoked using an allowed front controller.

Again the route exists :

frag/block/ent_user-ent_user_hello_user AuthcacheP13nDefaultRequestHandler AuthcacheP13nDefaultRequestUrlGenerator Oui

The debug message (green) :

Status
Cache Status: "HIT"
Speedup: "1,700% increase"
Page Render Time: "135.89 ms"
Cache Render Time: "7.55 ms"
Page Age: "32 seconds"
Settings
Cache Class: "MemcacheStoragePageCache"
Cache CID: "bf80e8e/"
Debug Users: ["Sebastien Pouillet"]
Cache User: "111"
Cache Backends: "authcache_builtin"
Active Backend: "authcache_builtin"
Authcache Key: "bf80e8e"
Key props: {"base_root":"https://dev-ent.univ-nc.nc","roles":[4],"ajax":true}
P13n Clients: "Ajax"
Active P13n Clients: "Ajax"
HTML/JavaScript time: 110 ms

What am I doing wrong ?

sebnoumea’s picture

Well after deactivating authcache_menu I get :

Status
Cache Status: "Caching CANCELED"
Message 1: "Canceled: Tabs on page. Enable authcache_menu or implement custom code capable of detecting when caching tabs is acceptable."
Page Render Time: "99.63 ms"
Page Age: "5 seconds"

znerol’s picture

Issue tags: -frontcontroller, -metatag, -shortlink

Thanks for the report. This is a bit complicated to explain but I think you did your setup 100% correct, but then you did hit a bug with Authcache Debug and that probably did lead to unproductive experimentation. Sorry for that.

In short, what happens is that Authcache Debug logs a false negative. It means that the message Excluded: Not invoked using an allowed front controller. for the authcache.php URL is spurious, and should not be logged at all. I've opened a separate bug report for that issue: #2417707: Authcache Debug logs spurious messages for the personalized fragments front controller, you may choose to follow that.

Just reactivate Authcache Menu again. The best way to examine whether a page is served from the cache is to examine the HTTP response header X-Drupal-Cache. It either says HIT or MISS.

znerol’s picture

Status: Active » Fixed

Patch mentioned in #4 landed.

Status: Fixed » Closed (fixed)

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