Changes does not appear immediately on front page in drupal - drupal

I'm new to drupal. There is a client website that we do some changes by using admin panel.
Changing some text in some pages. But the changes does not appear if you are not logged as admin or the user who made the changes.
after one day you can see that the changes can be seen by not logged users as well.
I search for cache problems or permission problems but I could not find anything in google.
What do you think is this?
not: cleaning browser cache or ctrl+f5 won't work.

If page caching for anonymous users is enabled, those visitors will see a cached version (and not the latest modified version).
Depending your configuration, this caching (minimum cache lifetime) can be between 1 minute and 24 hours. To verify / change your settings go to admin/config/performance.

Related

Wordpress site is not updating

Whenever I update something in my website whether it's on pages, posts, categories, menus, or more then it's not showing the changed result on the site when I open the website from google search or incognito. But it shows the changes when I access it from the dashboard.
More, I already have cleared the server cache, browser cache, website cache as well as Cloudflare cache but still not working.
So, can anyone help me out to fix this issue?
Thanks.
This is a cache-related issue. If you have used any caching plugin (WP-Rocket, W3 total cache, LiteSpeed, etc), you have to clear the cache from that plugin. You can use VPN & try a different browser to get the latest updates.
You can check instant results from different servers here:
Proxy Site

Logged-in Users need to Refresh page to see content

Hi I'm having an issue with a site where visitors need to be members to access certain pages, but once logged in they go to these pages and still see the 'not logged in' page and need to refresh to view the actual content.
This obviously leads to a lot of bounces and I'd like to fix so that they see the content right away.
The root issue comes from some cache settings or something from the host - unfortunately we can't change host (and it's not a regular hosting company with a website but a design company reseller) for the time being. This issue does not occur in our offline environment of the same site.
I've already had to add a ?randomnumber to the stylesheet so it loads new versions properly. I was wondering if something like this would work - but dynamically as pages are being added all the time by different admins.
Or any other solutions also appreciated!
Thanks
Like you said, tweaking the caching settings would be the most ideal. But since that's not an option, I'd suggest adding a random, meaningless query string to the URL of the member pages so that it's seen as a 'new page' and (likely) won't cache.
So instead of /member-page
Direct them to /member-page?cache-buster=randomlyGeneratedStringHere

Caching and/or Cookies breaking WooCommerce site

The App:
I am running a WordPress WooCommerce website and did some modifications.
Users arrive at a page called /configurator/ where they get asked different questions. After answering all questions I lead the users to a page /summary/ .
On this /summary/ page an individual result is presented to the user based on their answers in the /configurator/. Also I create a cookie on /configurator/ with all answers.
I use the cookie also on /cart/ and /checkout/ to add individual information to the product we sell to the user.
The Problem:
When we went live with the website we turned on "production mode" for our website at the admin panel of our hoster. It basically turns on the CDN and enables caching.
Unfortunately users experienced problems on /summary/. It seemed that the page couldn't be loaded.
My analysis:
I think the hoster caches /summary/ and breaks my site. Following this article it makes sense that the site doesn't work any more: https://docs.woocommerce.com/document/configuring-caching-plugins/
„These pages need to stay dynamic since they display information specific to the current customer.“
What the hoster says:
The hoster says they cannot exclude any subpages from being cached: "The problem was caused by coding errors in combination with the cookies that we create on /summary/"
Current Status:
I need to leave the site in development mode (without CDN and cache) which is very slow. Based on what the hoster says I can't turn on production mode because it will probably break the site again and we lose a lot of money. Currently I cant reproduce the error on a cloned version of the site :(
You should rewrite your code and instead of using cookies use WC Sessions. Every customer has a session that already works and persists throughout the whole site, just set your data in it and use it at all pages you need.

How to make changes are not visible in userside using wordpress

I want to edit contents of the existing page in wordpress.It is a live site so user side should not be changed
untill i want to publish that after all changes made to that page.Is there any plugin or what
i have to do for this.
Anyone please help me.
It depends what sort of changes. As noted above if you're channing post contents if will be enough not to publish them, but I guess you already now that.
However if you want to change appearance of the site then caching plugin might help. E.g. with w3 total cache you can do any change to template/css/php and so on and only logged in users will see changes (any non logged in user will get cached version of the page until you clean cache or cache expires).
If you have also users which are logging in into your wordpress, then I'm not aware of already made plugin that have such functionality - you probably would have to create development version of your site and test changes there.
For content - agree with previous answers.
But if you are changing the theme and want some changes to be visible only for you (admin) then you can use is_admin() function to print out different content for admin (new one) and different for other users (old one).
http://codex.wordpress.org/Function_Reference/is_admin

Exclude Block on Drupal

I need to stop a certain block from appearing on a certain page on a Drupal site. I went to admin->site building->blocks and set the block I wanted not to appear on the page I don't want it on. However, this change is only effecting logged in users, anonymous users still see the block. Any suggestions?
It sounds like it might be a cache issue: anonymous users get pre-rendered pages from the cache, so your change wouldn't affect them until the cache is cleared.
Try running http://www.yoursite.com/devel/cache/clear if you have devel installed, or resetting the cache at http://www.yoursite.com/admin/settings/performance if you're not using devel.

Resources