The wordpress code is modified, but the blog does not update. What will it be?

Asked

Viewed 3,522 times

0

I have a doubt I do not know how to ask I will try to be clear and objective.

I’m learning to edit wordpress blogs and am using the Theme Ribbon. : https://galician-approval.000webhostapp.com/

But every time I edit the code, it takes a while to update and show the changes on the blog.

The code is there, but it doesn’t appear on the blog.

Usually they are when I edit on css style., Function.php and etc.

I edit the blog, it takes time to update, when it updates, if I stay a few hours without editing Theme, the blog 'outdated' the changes made earlier, but when I go in the wp-admin area the current code is there. But for some reason it doesn’t show up on the blog.

It was supposed to look like this (updated version): inserir a descrição da imagem aqui

In order to get back to normal I need to go in some php file and click edit and update, so the blog comes back to updated form. But even doing so, it is outdated in all other places. as in my mobile, or even the anonymity of Google on the same computer. For it to update I would have to log into the wp-admin account and update the files from each device.

Is it my mistake? I cleaned the computer cache but it still hasn’t changed. What do I do? Ideas? I know nothing of php, I am editing only css, html and javascript of wordpress blog.

  • it should look like this: https://i.stack.Imgur.com/Xfjse.png but looks like this: https://i.stack.Imgur.com/E1z1x.png

  • 1
  • @Marceloboni I saw now that you sent a link.. Would it be my mistake? Or something related to cache? It’s as if the error was only on the main page... All others are up to date.

1 answer

1


Usually when you build a website you create a system of cache for its pages to prevent every visitor who enters the site from having to consult the database and perform all routines necessary to present the same content again. Imagine 10,000 people simultaneously requesting a page on your site at the same time. There wouldn’t be a machine that could support it, would there? It’s much easier, faster, scalable and cheap to do that:

perform only once the routine and save the html file and for the next requests that want the same content for a certain time present the html saved instead of running it all again.

In wordpress there are hundreds of cache plugins for site is very likely that you have some configured, in addition there is the use of CDN (Content Delivered Network) that have a network of computers around the world that work delivering static content through geolocation or if I request a page here from Rio de Janeiro the CDN calculates the route that contains the page that would take the least time, that is, but is close to me and delivers me directly this file without having to go to your server. Preventing the user request from being sent directly to your allocation and reducing the consumption of the user’s resources, this is also a cache system, so it is used cloudflare or any other cloud service this could also cause what you reported in your question.

The solution to this is to temporarily disable the cache plugin in your wordpress or disable the cloud (CDN). All these services have an option to temporarily disable the cache.

I forgot one detail, just one more thing a few internet providers also use caching to reduce bandwidth consumption on their servers.

Updating:

you are trying to upload images from a domain http (unencrypted) and the domain you sent uses https (encrypted) so browsers block loading for security reasons.

Veja Aqui

In your blog code correct for https which should work. In the case of images copy to your domain and change the url in the code to https.

This is happening only at your index as shown in the image below the top image is pointed to another domain without https

Index topó URL da imagem errada

  • gvt usage. I disabled the blog caches. In case I needed to leave disabled until finished the right blog design?

  • It is as if the error was only on the main page... All other pages are up to date. It would still be a cache problem?

  • Hi, yes leave disabled while changing the site then reactivate the cache.

  • Send me the page that still displays the old version so I can help

  • Update your question if there are still problems!

  • I did not deny, but in your 'answer' you confuse garlic with oranges... even the poor judge who does not understand about IT. The only part that saves is the recommendation of disable some cache plugin. Imagine what a platform with N languages caching HTML pages... The best alternative would be to use browser cache.

  • Which parts do you believe are not correct? How many sites do you have above 100k to start history? How many servers do you manage?

  • As a useful part of the answer I believe it is consistent to recommend disable some cache plugin. The CDN explanation is relatively coherent, but about the file cache I do not think is convenient for the WP platform, it would be better to use the browser’s own cache for this and 'caching' the queries. They are only opinions you can add to your own answer ;)

  • I don’t manage anything... I’m the judge who knows little about technology. Hugs

  • Yes but her question was not about using or not ! And yes brother because the pages display old versions. My answer was in order to instruct what may have happened I mentioned the plugins and cache, CDN and tb some providers who cached to reduce bandwidth consumption! It is revolting when one disagrees but does not point out the error.If you wish to disagree, it is your right, but justify yourself!

  • But I’ve justified champion, even agreed with your suggestion. You’re taking your -1 anger out on the wrong people. You can get angry or see how contributing the time I spent writing a comment - the choice is yours. Hugs

  • @Rafaelsalomão https://galician-approval.000webhostapp.com/ the original page is out of date.. But when you click to read the posts or change the page below, we see that it’s up to date as it should be. Which means that only on the home page is it outdated.

  • About your new update. I already did this, in the update the photos are all from the test blog. See all pages, except the initial, are updated see this https://galician-approval.000webhostapp.com/2017/07/postagem-10 .

  • 1

    Complementing and summarizing what @Rafaelsalomão posted many hosting services has by default a cache system that is independent of plugin wordpress. On the one hand this is good, but for the development of a huge headache, one way to solve this is by using plugins that manage updates in the event of frameworks or using for example: ?v=[rand number] in case of handmade code.

Show 9 more comments

Browser other questions tagged

You are not signed in. Login or sign up in order to post.