V
V
Vera2020-06-30 14:48:26
Angular
Vera, 2020-06-30 14:48:26

wp plugin on php & angular 9 - why no dynamics on local server?

I am writing a wp plugin in php (I use Boilerplate) & angular 9. PHP is used to communicate with the db, everything else is in angular. The plugin has, as it were, an admin part (in angular), where the form for adding a document and a list of created documents are located. When saving a new document, its name should immediately appear in the list of documents - this is what happens if the plugin is installed on a real site.

If I use a local server (XAMPP) - most often the name of the new document does not appear in the list (it is stored in the database). If you reload the page - everything is the same. And only if you clear the cache and reload the page - the name appears in the list.

Why is this happening? Is it necessary to fight it? I just have an idea to save data to local storage too. Does it make sense?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question