B
B
blindmen2016-01-28 23:36:10
PHP
blindmen, 2016-01-28 23:36:10

How to restore the cache of an object (product) in wordpress?

the problem itself is that when loading records (woocomerce of goods), there are records in wp_options starting with _transient, which lead to js inoperability and due to ajax in the admin panel. the site itself continues to work. disabled all plugins and rolled back to very ancient versions.
Before that, everything was loaded without problems for almost half a year.
update:
glitch is expressed in error on page "wp-admin/post.php?post=any_id&action=edit" Uncaught TypeError: Cannot read property 'model' of undefined
/wp-content/plugins/woocommerce/assets/js/admin/meta -boxes-product-variation.min.js?ver=2.3.11
that is, this js is trying to get the settings from this cache (wp.media.model.settings.post.id), but it is either cleared or shifted and as a result you cannot edit products in the admin panel. tried different versions of woocomerce both new and old. stackoverflow says wp.media.model.settings.post.id = autos_save_id; just where to put it.
when woocomerce is disabled, the ability to edit is accordingly returned to
upd:
when restoring from wp_options backup, everything works again. and when you transfer the database to a local server, everything starts working too. only here is how to do this update the object cache in wp_options without recreating the table?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Mr Crabbz, 2016-01-29
@Punkie

You have some incredible bugs. I have all the stores on Woocommerce, I specially caching the maximum everywhere. And everything is ok.
The only thing there is that you need to disable caching on some pages of the front (using a filter in the cache plugin). If this is W3 Total Cache, then you still need to add mfunc to the exclusion list (everything is in the Woo manual).

W
WP Panda, 2016-01-29
@wppanda5

Unfortunately, if you disable caching at the kernel level, everything will die, but caching the kernel cannot cause bugs, figure out what and where you and the theme developer have done, and edit.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question