🦋 Welcome to the MAIN() IRC channel of the Raku Programming Language (raku.org). Log available at irclogs.raku.org/raku/live.html . If you're a beginner, you can also check out the #raku-beginner channel!
Set by lizmat on 6 September 2022.
tbrowder [Coke] : great reminder 02:29
Xliff Hello 04:05
Does anyone know if Cro caches, or if there has been a caching module developed for it?
antononcube I don't know -- here is what Google's Gemini thinks: 13:22
cdn.discordapp.com/attachments/633...96b6a&
melezhik. This http caching . Cro by could send http caching headers . So if question about http caching in that context - then answer is yes. Caching thing in general - more broad topic usually mentioned in high load systems as a mechanism to couple with higher load requests 13:38
tellable6 2025-02-07T10:47:34Z #raku <librasteve> melezhik: thanks ... will take a look
lizmat it's been a few years since I looked at the code of the IRC logs website 13:40
but I think it does caching there
for the date page files (if not on today)
lizmat but I think I implemented that by looking at: is there a file with this name and its modified date is after server startup, then slurp the file and give that 13:41
sadly no support for SendFile (at least at the time I wrote that 13:42
)
melezhik. Repeating my answer as irc log only keep initial answer , not later revisions done in discord … important details are missed This is a http caching . Cro as a web server could send http caching headers to inform browsers about static resources expiration date so they won’t overload web server requests and only request a new version of resource due expiration deadline, meanwhile using their local cache . So if 13:44
question about http caching in that context - then answer is yes. Caching thing in general - more broad topic usually mentioned in high load systems as a mechanism to couple with higher load requests
librasteve Xliff: here's what I found out from the docs 17:56
tellable6 librasteve, I'll pass your message to Xliff
librasteve Xliff: (i) cro.raku.org/docs/reference/cro-ht...achability - so Cro::HTTP::Router gives you power over the HTTP cache-control headers (but then the cache is implemented in the browser - or somewhere in a web cache internet (as you probably know) 17:57
tellable6 librasteve, I'll pass your message to Xliff
librasteve Xliff: (ii) cro.raku.org/docs/reference/cro-htt..._responses describes (with an example) of how to roll your own Cro middleware cache 17:59
tellable6 librasteve, I'll pass your message to Xliff
librasteve Xliff: (iii) Cro::WebApp::Templates are held in a repository and are precompiled and cached when the server is started. 18:00
tellable6 librasteve, I'll pass your message to Xliff
librasteve Xliff: while this module raku.land/github:scmorrison/Web::Cache was built for Bailador, it would probably be quite easy to cut and shunt this together with the Cro middleware example 18:07
tellable6 librasteve, I'll pass your message to Xliff
Guest37 yoyo 18:29
jdv oyoy 18:32
Guest37 I'm watching the Bruce Gray intro to raku .. haven't used perl in a long time and never was a wizard 18:38
Guest37 i committed to put 3-4 hours into raku today to hopefully get excited about it 18:42
lizmat well, if you have questions, Guest37, then you could also try asking here on on #raku-beginner 18:43
Guest37 Thank you 18:44
lizmat Guest37: also, if you're coming from Perl, then you might find this interesting: dev.to/lizmat/migrating-perl-to-raku-1c47 18:45
Guest37 My perl was in 2008 and never fully learned it. Coming most recently from Python and C++ 18:47
Those are ones I know the best
lizmat then perhaps: docs.raku.org/language/py-nutshell 18:48
we don't have one coming form C++ or C for that matter :-( 18:49
Guest37 That python one should be very helpful
lizmat I hope it will... if you have any suggestions to improve that nutshell, please leave a comment / make an issue :) 18:52
Guest37 I will for sure 18:53
lizmat ++Guest37
melezhik . 19:59
I've added Template6 to sparrow ecosystem - sparrowhub.io/plugin/template6/0.000003
example sparrowdo example - github.com/melezhik/sparrowdo-temp...late6.raku 20:00