A
A
Andrey Salnikov2015-09-30 11:42:32
PHP
Andrey Salnikov, 2015-09-30 11:42:32

How to deal with cache in MODX?

In modx, when we press save, it clears the cache. That is, changes made to modx are immediately displayed on the site. I have several separate pages attached where a person can add their objects and edit them. But the problem is that when updating information, it does not clear the cache and, accordingly, old information appears on the site? How can you deal with this? Is there any command to clear the cache like in the modx admin panel?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey Zelensky, 2015-09-30
@SergeyZelensky-Rostov

clearing the cache folder is a 100% panacea))

V
Vladislav Soprun, 2015-09-30
@soprun

1. loss of the resource caching
2. you can clear the cache through the plugin

D
dzhuryn_volodymyr, 2015-10-02
@dzhuryn_volodymyr

$modx->cacheManager->refresh();//clears all cache

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question