How cache invalidation logic works for templates?

romal
Member | 16
+
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?

Šaman
Member | 2654
+
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)

romal
Member | 16
+
0
-

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

Petr Parolek
Member | 455
+
0
-

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

romal
Member | 16
+
0
-

ppar wrote:

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

Doesn't work on Windows OS.

Mysteria
Member | 797
+
0
-

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

CZechBoY
Member | 3608
+
+1
-

Why not to set development mode if you are developing?