Исключить адрес из гостевого режиме
-
Hello, I have a problem of importing goods to the site from the "1C Accounting" program on these settings https://prnt.sc/1tteryg I like this mode as it gives the green zone in Google Page Speed. Help me exclude the address https://npk-dn.com/import-1c.php, or better the entire folder with the WooCommerce plugin - 1C - Data Exchange
-
Hi,
please more specific about the error , what does it say ? any more specific error message ?
Best regards,
When the accounting system 1C Accounting addresses https://npk-dn.com/import-1c.php, it returns outdated information. For example, when importing goods, 1C transfers the import.xml file to the site, and then makes a request to the site to start processing this file, after which the following happens: 1.1C, in fact, sends the import.xml file to the site (it is there) 2. Gives the site a request to process this file 3. And the site gives an answer to 1C that there is no such file on the site and that is the end of the process. I observe this on all sites where I use the services of the regime. After disabling the mode, the unloading of goods is perfect. I would like to make friends with the guest mode with the unloading of goods from 1C to the site. Is this information enough?
/*Original*/
Когда учетная система 1С Бухгалтерия обращается к https://npk-dn.com/import-1c.php, он возвращает устаревшую информацию.Например, при импорте товаров, 1С передает на сайт файл import.xml, а затем делает запрос к сайту, что бы он начал обрабатывать этот файл, после чего происходит следующее:
1. 1С по факту отправляет на сайт файл import.xml (он там есть)
2. Дает сайту запрос на обработку этого файла
3. А сайт дает ответ 1С, что такого файла на сайте нет и на этом процесс заканчивается.Такое наблюдаю на всех сайтах, где включены настройки гостевого режима.
После отключения гостевого режиме, выгрузка товаров происходит идеально.
Мне хотелось бы подружить гостевой режим с выгрузкой товаров из 1С на сайт.Этой информации достаточно?
huh ?
so you mean it’s like when you use that 1C to import , the product data doesn’t update ?
Yes
Hi,
you need to fire some purge.
e.g.
do_action( 'litespeed_purge_all' );
to purge all cacheor
do_action( 'litespeed_purge_posttype', 'product' );
to purge product pages onlyBest regards,
After successful unloading from 1C, the cache is cleared automatically.
I am writing about a completely different problem.
Unloading does not occur at all from 1C on the site when the guest mode is enabled in the Lite Speed Cache plugin.`
does your “1c” file includes WP ? or is it individual file ? how do you link it to wordpress ?
1C applies to this address to upload goods to the site - https://prnt.sc/1ud5few https://prnt.sc/1ud5hy5 https://prnt.sc/1ud5ku6 And when the guest mode is enabled in the cache plugin, the site, after much deliberation, responds to 1C that the upload file import.xml was not found on the site, although this file was in fact successfully unloaded and is in the plugin folder for integration https: // prnt. sc / 1ud5v99 I have already informed the author of the plugin about this, they promised to think about how to disable the Lite Speed Cache plugin to disable caching of PHP scripts. But I decided to write to you as well, because my customer wants a green zone in Google Page Speed and at the same time working unloading of goods from 1C to the site.
/*Оригинал*/
1С обращается по этому адресу для выгрузки товаров на сайт – https://prnt.sc/1ud5few https://prnt.sc/1ud5hy5 https://prnt.sc/1ud5ku6И когда в плагине кеша включается гостевой режим, то сайт, после долгих раздумий, отвечает 1С, что файл выгрузки import.xml не найден на сайте, хотя этот файл по факту успешно выгружен и лежит в папке плагина для интеграции https://prnt.sc/1ud5v99
Я уже сообщил об этом автору плагина, они пообещали подумать как запретить плагину Lite Speed Cache запретить кеширование PHP скриптов.
Но решил написать еще и вам, так как мой заказчик хочет зеленую зону в Google Page Speed и при этом рабочую выгрузку товаров из 1С на сайт.
Hi,
go to Cache -> Exclude -> do not cache URI, add this filename into it
Best regards,
It didn’t help unfortunately
Hi,
try add this code into your wp-config.php , right next line after <php
if (strpos($_SERVER['REQUEST_URI'], "import-1c.php") !== false) { define( 'LITESPEED_CONF', true ); define( 'LITESPEED_GUEST_OPTM', false ); define( 'LITESPEED_GUEST', false ); define( 'LITESPEED_DISABLE_ALL', true ); }
purge all , and try again.
It helped, thanks!
- The topic ‘Исключить адрес из гостевого режиме’ is closed to new replies.