Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: Can’t tell if query string page is being served from cache

Status Resolved
Add-on / Version Speedy 1.9.0
Severity
EE Version 7.3.15

James Brown

Feb 05, 2024

I’m a bit unsure if my caching for query strings is working correctly, so I just wanted to doublecheck. In my case I have $configI’speedy_query_cache_allowlist’] = l’uid’]; setup in my config.php. When I go to a URL (ex: https://zeronetworks.com/careers/details/?uid=A5.241) I do see some form of unique cache created but it has some unknown setup of characters instead of what the uid value was (ex: details+a0f14b10b15fcb0765b427e835cf6446). When I try to add in the Speedy debug query string to the URL (ex: view-source:https://zeronetworks.com/careers/details/?uid=A5.241&speedy_debug=1) I’m not seeing the little Speedy debug data at the end of the html like I do on other pages.

So that’s really why I’m unsure if the page is properly being cached and more importantly if it is being pulled and served from the cache.

#1

BoldMinded (Brian)

Have you tried editing the cache file and putting in some unique identifier that will render in the output content to see if it’s loading that cache file?

#2

James Brown

Hmmm… of course the file is uneditable due to server permissions. hahahaha. I assume because of the way the PHP user is setup for the host. So I guess that idea is out.

#3

BoldMinded (Brian)

Are you able to change those permissions? It’s the easiest way to know if the cache file is actually getting loaded. That, or if you disable/remove al cache clearing rules. Make sure the cache file already exists, then make a content change that you would expect to show up on the page and see if the old or new content shows up. If the old content shows up, then you know it’s loading from the cache file correctly.

#4

James Brown

Ok, I was able to confirm that it is indeed serving from the cache. So that is good. I guess the only other question is in the Speedy UI is that intentional that it shows: PAGE_NAME + RANDOM_CHARACTER_STRING? That may very well be the intended display, but just makes it a little tough to see what is cached and if I just want to delete the cache selectively, that makes it difficult to single out the specific page.

#5

BoldMinded (Brian)

Pages can have really long query strings that exceed file name lengths, so the random string is an md5 hash of the query string parameters to create a unique ID for the page.

Login to reply