How cache invalidation logic works for templates?

17 days ago

romal
Member | 7
+
0
-

I have very strange problem.
At localhost (OpenServer) if I made any change in template it immediately invalidate
cache and I see in browser my changes.
But at hosting (jino.ru) I see the old version of the page and I should manually delete folder
“temp/cache” to see my changes in browser.
What could be causing this behavior?

17 days ago

Šaman
Member | 2357
+
0
-

This is the expected behavior. At production server, cache must be cleared during deployment. (Or deploy it with already prekompiled templates.)

Last edited by Šaman (2020-01-04 12:57)

17 days ago

romal
Member | 7
+
0
-

Is there any command to send from PhpStorm terminal to clear cache at production server?

17 days ago

ppar
Backer | 242
+
0
-

from bash (phpstorm terminal) run simple rm -r temp/cache

17 days ago

romal
Member | 7
+
0
-

ppar wrote:

from bash (phpstorm terminal) run simple rm -r temp/cache

Doesn't work on Windows OS.

17 days ago

Mysteria
Member | 746
+
0
-

It works, but you need to use PowerShell not Command Line.

17 days ago

CZechBoY
Member | 3452
+
0
-

Why not to set development mode if you are developing?