Problems with Cookies and Cache in programming

Asked

Viewed 29 times

0

I am with a doubt that may seem very amateur and without context to clarify in stackoverflow. I don’t know if I’ll find an answer here either.

But I have a problem (I don’t know if it’s just something that happens to me) where whenever I’m programming and making changes to the code, there comes a certain moment when the code changes no longer have an effect (visually). Then I have to run a CCLEANER or any other similar program so that the changes can take effect. (This is when I’m programming on localhost).

It also happens (in the company where I do internship) I perform a change in the system and upload the files to the hosting, so the Web System does not present changes at that exact moment (even if I update the page). The system only changes when I run the CCLEANER. Basically I use to program PHP and Javascript, besides HTML, CSS, Bootstrap, jQuery and some other libraries.

My question is:

  • What CCLEANER does (clears) in the browser, as well as caching and cookies, to accomplish what I mentioned above ?

  • Are there any PHP or Javascript (jQuery) function that does the role of CCLEANER and I do not need to run it so that the System shows the updates soon after I upload the files ?

Thank you!

  • I believe that a ctrl + F5 can resolve tbm by updating and clearing the cache at the same time

  • @Phpatrick , what I reported happens to you ?

  • 3

    The only thing that Ccleaner does that solves the problem is to precisely delete the cached files to clear space from the computer. Cache should be your friend, it’s up to you. What makes cache invalidation a difficult solution? Implementing anything that cleans the cache such as Ccleaner would be a stopgap and not a definitive measure. Instead of searching for it, look for how to manage the cache in your favor.

  • 1
No answers

Browser other questions tagged

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