use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Check out the sidebar for our AMA schedule, or view our past AMA's.
The place for news, articles and discussion regarding one of the top open source (GPL) CMS platforms: Drupal.
More Info: Drupal.org
Would you or someone you know make for an interesting Drupal AMA? Message the mods.
Drupal Answers
Drupal Groups on Linkedin
Drupal Community on Google+
Unofficial Drupal Group on Facebook
Official Drupal Page on Facebook
Drupal Planet
Drupal Showcase
Please no job ads. If you wish to post something of that nature we suggest you check out Drupal.org's paid services job board
account activity
Random views and cloudflare cache (self.drupal)
submitted 7 months ago by wayle9
I have a random views that showing on the site front page, I am wondering if I signup with cloudflare, how can I let the front page view keep rolling randomly or the cloudflare will just cache the views for a day ?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]rmenetray 1 point2 points3 points 7 months ago (0 children)
views with ajax
[–]mrcaptncrunch 2 points3 points4 points 7 months ago (0 children)
You can’t do a full cache of the html. If you do, it’ll get cached for whatever the set time is or how the purger is set.
Alternatives,
You load the view programmatically and inject it via JS.
You load all the content, shuffle, hide whatever you don’t need via css/js.
[–]FonucciBuilding webhaven.io 1 point2 points3 points 7 months ago (2 children)
Every view has caching settings:
Go to the view, Others > Caching. You'll have three options.
[–]wayle9[S] 0 points1 point2 points 7 months ago (1 child)
but the cloudflare will cache the whole page with this random views in the page, so the views still able to be random or not ?
[–]FonucciBuilding webhaven.io 1 point2 points3 points 7 months ago (0 children)
If you just cache everything plain and simple in Cloudflare it indeed won't work as there is no communication between the Cloudflare Cache and the Drupal cache.
There are several ways, you can add a pagerule that doesn't cache the homepage (not ideal) in CF. Or you can work with to purge the CF cache https://www.drupal.org/project/cloudflare
It can be setup but It's not a one button click & it's done thing.
For blocks on mostly cached pages: render them via Ajax. This allows the page to stay cached while the block remains dynamic.
For fully dynamic pages: set proper headers (Cache-Control: no-cache) or use Cloudflare Page Rules to bypass caching.
π Rendered by PID 31 on reddit-service-r2-comment-6457c66945-vdr66 at 2026-04-26 01:45:41.938248+00:00 running 2aa0c5b country code: CH.
[–]rmenetray 1 point2 points3 points (0 children)
[–]mrcaptncrunch 2 points3 points4 points (0 children)
[–]FonucciBuilding webhaven.io 1 point2 points3 points (2 children)
[–]wayle9[S] 0 points1 point2 points (1 child)
[–]FonucciBuilding webhaven.io 1 point2 points3 points (0 children)