Skip to content

Magento 2 how to purge varnish cache programatically when flush magento cache

private function purgeVarnishCache($url) { try { // Trigger Varnish cache purge by sending a PURGE request $this->curlClient->setHeaders([‘Host’ => parse_url($url, PHP_URL_HOST)]); $this->curlClient->addHeader(‘Host’, parse_url($url, PHP_URL_HOST)); $getTest = $this->curlClient->setOption(CURLOPT_CUSTOMREQUEST, ‘PURGE’); $this->curlClient->setOption(CURLOPT_URL, $url); $this->curlClient->setOption(CURLOPT_RETURNTRANSFER, true); // Execute the request and get the response body… Read More »Magento 2 how to purge varnish cache programatically when flush magento cache

Magento2 Address value not saved on Hyva Checkout

We implemented google auto complete address at checkout of Hyva but our address value are not saved and removed after 3 seconds. https://i.imgur.com/dQ2fGwL.png How to saved all address value with hyva checkout.shipping-details.address-form component? Any help is appreciated!

Magento2. KnockoutJs. Define Scope and call function on the same html node

I have a very simple Component define([ ‘uiComponent’, ‘Magento_Customer/js/customer-data’ ], function (Component, customerData) { ‘use strict’; return Component.extend({ /** @inheritdoc */ initialize: function () { this._super(); this.notificationCounts = customerData.get(‘notification_counts’); } }); }); I want to conditionally display an html element… Read More »Magento2. KnockoutJs. Define Scope and call function on the same html node

Something to Self Register Emails on Cpanel?

Is there a way for new users to self-register a new email account on a dedi WHM/Cpanel Server (or somehow even through Roundcube? I know… | Read the rest of https://www.webhostingtalk.com/showthread.php?t=1911520&goto=newpost