Welcome Guest, Not a member yet? Register   Sign In
Views not reflecting code, html or css changes
#1
Question 

Whenever I change my view code, html or css it takes really long (~60 sec.) to reflect in my local browser. However if I have for example a list view and add a database item it show right away. It feels like a caching problem but I have tried several things already after googling this issue.

Specs:
  • Windows 11 Home 21H2
  • CI 4.2.4
  • Bitnami WAMP 8.1.9
  • Running in development mode
What have I tried:
  • Deleting cache from browsers (Chrome/Edge)
  • The welcome_message view shows the same slow change behaviour
  • In BaseController and MyController
Code:
header("Cache-Control: no-cache, no-store, must-revalidate"); // HTTP 1.1.
header("Pragma: no-cache"); // HTTP 1.0.
header("Expires: 0"); // Proxies.
$this->response->noCache();
$this->cachePage(3);
  • In Config/Cache.php
Code:
public $ttl = 3;
  • Tried changing files in other editors (maybe Jetbrains IDE was updating slow)
  • Checked CI dev bar. Page loads quickly.
  • Running in Production mode. Still slow.
Reply


Messages In This Thread
Views not reflecting code, html or css changes - by cheesecakenl - 08-16-2022, 06:58 AM



Theme © iAndrew 2016 - Forum software by © MyBB