Skip to content

Commit

Permalink
feat: add timeout to io.php, extend css and js
Browse files Browse the repository at this point in the history
  • Loading branch information
chartechlabs committed Oct 5, 2020
1 parent b0fc133 commit 6b3ceb6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions Resources/views/frontend/_public/io.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_POSTFIELDS, $data_string);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 6);
curl_setopt($ch, CURLOPT_TIMEOUT, 6);
curl_setopt(
$ch,
CURLOPT_HTTPHEADER,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@
-webkit-box-sizing: border-box;
box-sizing: border-box;
font-size: 18px;
font-weight: 400;
line-height: 22px;
cursor: pointer;
border: 1px solid #ccc;
Expand Down

Large diffs are not rendered by default.

7 changes: 3 additions & 4 deletions Subscriber/Frontend.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,9 @@ public function onPostDispatchConfig(\Enlight_Event_EventArgs $args)

// If this is a POST-Request, and affects our plugin, we may clear the config cache
if ($request->isPost() && ('EnderecoShopware5Client' === $request->getParam('name'))) {
$this->cacheManager->clearByTag(CacheManager::CACHE_TAG_CONFIG);
$this->cacheManager->clearByTag(CacheManager::CACHE_TAG_TEMPLATE);
$this->cacheManager->clearByTag(CacheManager::CACHE_TAG_HTTP);

$this->cacheManager->clearHttpCache();
$this->cacheManager->clearConfigCache();
$this->cacheManager->clearTemplateCache();
}
}

Expand Down

0 comments on commit 6b3ceb6

Please sign in to comment.