Muut Archive Legend
@Muut · Joined 9 years ago · 18337 posts · 3878 topics · 137 reputation
Badges
Recent posts
-
Disable page cache based on user logged in?
· 10 years ago
Perlkönig, your suggestion was correct. I created a new plugin using the DevTools Plugin as described in the docs. Then, in the function onPluginsInitialized()I added these lines just to test:
-
Disable page cache based on user logged in?
· 10 years ago
As far as I can see in the Login plugin, the user is indeed loaded at the onPluginsInitialized event. So if your plugin runs at the same event at a priority <1000, you should have access to the use
-
Disable page cache based on user logged in?
· 10 years ago
Thanks for pointing in that direction. As far as I understand the internal workings of Grav, I think that is the way to go. I'll have a try.
-
Disable page cache based on user logged in?
· 10 years ago
If I understand the source code correctly, the main cache check happens in Pages::buildPages(). So somewhere before onBuildPagesInitialized (perhaps right at onPluginsInitialized, I'm not sure when th
-
Disable page cache based on user logged in?
· 10 years ago
Is it possible to serve non cached pages to users who are logged in and at the same time have caching enabled for all 'normal' visitors? Changing the caching settings in system.yaml is no use since it
-
Question re: reusing content across multisite
· 10 years ago
Wow. I would have racked my brain over this for so long and never considered symlinks. Thank you!
-
Question re: reusing content across multisite
· 10 years ago
I love symlinks :) They allow for such elegant solutions.
-
Question re: reusing content across multisite
· 10 years ago
In multisite, every site has its own folder with pages, configuration, etc. You could have a "common" site with a "common" pages folder, and have symbolic links from every site you have to that folder
-
Question re: reusing content across multisite
· 10 years ago
I'm new to Grav and studying its feasibility for a new website. University websites are incredibly complex, and it's difficult to find a CMS that adheres to a DRY (don't repeat yourself) paradigm. Loo
-
Show Source
· 10 years ago
I just submitted a View Source plugin. It will suit my needs. Thanks for the reply, OleVik!